xonker has asked for the wisdom of the Perl Monks concerning the following question:
Why is this not the same to perl? is this a legitmate bug?@arr = qw~0~; $foo = \@arr; @{$foo} ? print "TRUE\n" : print "FALSE\n"; # deref 1 $foo->[0] ? print "TRUE\n" : print "FALSE\n"; # defef 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Arefs: Testing for Truth:
by jZed (Prior) on Mar 24, 2004 at 00:27 UTC | |
|
Re: Arefs: Testing for Truth:
by Limbic~Region (Chancellor) on Mar 24, 2004 at 00:29 UTC | |
|
Re: Arefs: Testing for Truth:
by Vautrin (Hermit) on Mar 24, 2004 at 00:43 UTC | |
|
•Re: Arefs: Testing for Truth:
by merlyn (Sage) on Mar 24, 2004 at 00:29 UTC | |
|
Re: Testing for Truth
by Happy-the-monk (Canon) on Mar 24, 2004 at 00:34 UTC |