Subject: | Make all the globals object attributes |
It would be very nice if I could safely change the behavior of an
Archive::Extract object without having to localize globals before every
use. For example:
my $ae = Archive::Extract->new(
archive => $file,
prefer_bin => 1
);
...and then later...
$ae->extract( to => $dir );
as opposed to:
my $ae = Archive::Extract->new(
archive => $file,
);
...and then later...
local $Archive::Extract::PREFER_BIN = 1;
$ae->extract( to => $dir );
This would apply to debug, warn and prefer_bin. The object would use
the global flags as a defaults.