in reply to Re^8: the "our" declaration ?!!
in thread the "our" declaration ?!!
Anyway there are some traps when our is used with special vars, for instance something like our $\="\n"; will make B::Deparse fail ...
lanx:~$ perl -MO=Deparse perl/myour.pl While deparsing perl/myour.pl near line 3, Unexpected our($\) CHECK failed--call queue aborted. lanx@:~$ perl -version This is perl, v5.8.8 ...
nice for obfuscation ; )
> In any case this is an example of why it is better to have a precise understanding of how features work rather than having a vague impression that is going to mostly work, most of the time.
FULL ACK! Especially because really understanding "our" implies really understanding "my".
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: the "our" declaration ?!! (special vars)
by tilly (Archbishop) on Jan 21, 2009 at 16:20 UTC | |
by LanX (Saint) on Jan 21, 2009 at 16:49 UTC | |
by tilly (Archbishop) on Jan 21, 2009 at 17:41 UTC | |
by LanX (Saint) on Jan 21, 2009 at 20:50 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 21:01 UTC | |
by Sandy (Curate) on Jan 21, 2009 at 20:56 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 21:22 UTC | |
| |
by Jenda (Abbot) on Jan 21, 2009 at 23:27 UTC | |
by tilly (Archbishop) on Jan 21, 2009 at 23:38 UTC | |
|