yosefm has asked for the wisdom of the Perl Monks concerning the following question:
Or are they? I'm trying to write a module that uses bytes.pm only if it was requested in the import list, like - use module qw(LegacyEncoding and other options);
The problem is that if I use if, bytes will only be scoped to the if block. And anyway if I manage to avoid that (like with $legacy and use bytes) it will still be scped to the import sub.
Any way around it?
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: if only blocks were avoidable...
by liz (Monsignor) on Sep 21, 2003 at 20:58 UTC | |
by yosefm (Friar) on Sep 22, 2003 at 11:07 UTC | |
by liz (Monsignor) on Sep 22, 2003 at 13:56 UTC | |
by yosefm (Friar) on Sep 22, 2003 at 15:30 UTC | |
by tye (Sage) on Sep 23, 2003 at 16:52 UTC | |
| |
by yosefm (Friar) on Sep 22, 2003 at 09:22 UTC | |
by Anonymous Monk on Sep 22, 2003 at 10:22 UTC | |
Re: if only blocks were avoidable...
by jeffa (Bishop) on Sep 21, 2003 at 20:22 UTC |
Back to
Seekers of Perl Wisdom