NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Is that production code? (Score:1)
''
0
'0'
reference to an empty hash, array, or any of the above
for $foo and $bar are invalid and assigning over them is safe
Reply to This
Re:Is that production code? (Score:1)
Re:Is that production code? (Score:2)
Why should any of those be valid apart from 0.
If you can't see the type and usage of a variable, the solution is to name it correctly.
It should also be clear if 0 is acceptable or not in the code, that would be the only comment possibly needed.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;