Archive-TarGzip
view release on metacpan or search on metacpan
t/Archive/Data/Secs2.pm view on Meta::CPAN
16941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716inherits L<Data::Startup|Data::Startup>.
Using the C<config> as a subroutine
config(
@_
)
writes and reads
the C<
$Data::Secs2::default_options
> object
directly using the L<Data::Startup::config|Data::Startup/config>
method.
Avoided the C<config> and in multi-threaded environments
where separate threads are using C<Data::Secs2>.
All other subroutines are multi-thread safe.
C<
$Data::Secs2::default_options
> and apply any option
changes to the copy keeping the original intact.
Using the C<config> as a method,
$options
->config(
@_
)
writes and reads the C<
$options
> object
using the L<Data::Startup::config|Data::Startup/config>
t/Archive/Data/Startup.pm view on Meta::CPAN
175176177178179180181182183184185186187188189190191192193194195@old_options_list
=
$options
->config(\
%option_list
);
# Note: May use [@option_list] instead of \@option_list
# and {@option_list} instead of \%option_list
=head1 DESCRIPTION
Many times there is a group of subroutines that can be tailored by
different situations with a few, say global variables.
However, global variables pollute namespaces, become mangled
when the functions are multi-threaded and probably have many
other faults that it is not worth the time discovering.
As well documented in literature, object oriented programming do not have
these faults.
This program module class of objects provide the objectized options
for a group of subroutines or encapsulated options by using
the methods directly as in an option object.
The C<Data::Startup> class provides a way to input options
in very liberal manner of either
t/Archive/File/SmartNL.pm view on Meta::CPAN
312313314315316317318319320321322323324325326327328329330331332333334using the C<
default
> method.
Using the C<config> as a subroutine
config(
@_
)
writes and reads
the C<
$File::Drawing::default_options
> object
directly using the L<Data::Startup::config|Data::Startup/config>
method.
Avoided the C<config> and in multi-threaded environments
where separate threads are using C<File::Drawing>.
All other subroutines are multi-thread safe.
C<
$File::Drawing::default_options
> and apply any option
changes to the copy keeping the original intact.
Using the C<config> as a method,
$options
->config(
@_
)
writes and reads the C<
$options
> object
using the L<Data::Startup::config|Data::Startup/config>
( run in 0.365 second using v1.01-cache-2.11-cpan-454fe037f31 )