Archive-TarGzip

 view release on metacpan or  search on metacpan

t/Archive/Data/Secs2.pm  view on Meta::CPAN

1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
inherits 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.
They use C<override> to obtain a copy of the
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

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
@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

312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
using 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.
They use C<override> to obtain a copy of the
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 )