Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I would be rather perturbed to find that in production code without explicit comments that values such as

    ''
    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
    • Obviously, $foo is not in production code :) but the style is.
    • why?

      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;