Don't try to change DATASTORE, have two classes, DATASTORE::plain and DATASTORE::gzip.
I would make DATASTORE->new return one of the two classes, depending on the filename.
In reply to Re: Inherit methods from IO::File and IO::Uncompress depending on file extension
by Corion
in thread Inherit methods from IO::File and IO::Uncompress depending on file extension
by jnoirel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |