s0ttle has asked for the wisdom of the Perl Monks concerning the following question:
and when I try to do something like:sub x{ local(*A)=$_[0]; if(opendir(R,"/usr")){x(*R); } }
I get:sub x{ local(*A)=$_[0]; if (opendir(R,"/usr")){while(<R>){print;} } }
[s0ttle@ween]%perl subtest Read on closed filehandle <C> at a line 23. [s0ttle@ween]%fuq fuq: Command not found. [s0ttle@ween]%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: subs && typeglobs
by Ovid (Cardinal) on Aug 03, 2001 at 23:56 UTC | |
|
Re: subs && typeglobs
by VSarkiss (Monsignor) on Aug 03, 2001 at 23:53 UTC | |
by s0ttle (Scribe) on Aug 04, 2001 at 00:03 UTC | |
by tachyon (Chancellor) on Aug 04, 2001 at 00:23 UTC | |
by s0ttle (Scribe) on Aug 04, 2001 at 13:44 UTC | |
by tachyon (Chancellor) on Aug 04, 2001 at 14:49 UTC | |
| |
by s0ttle (Scribe) on Aug 04, 2001 at 00:01 UTC | |
|
Re: subs && typeglobs
by tachyon (Chancellor) on Aug 03, 2001 at 23:53 UTC |