Those sorts of loops always seem to mess with my mind though, and eventually I want to add another statement, so I always end up using the more common block form.
foreach ( @array )
{
warn "Working on [$_]\n" if $Debug;
tr/a/z/;
warn "\tnow it is [$_]\n";
}
That looks like transliteration. (Score:1)
tr/a/z/ for @array;
Those sorts of loops always seem to mess with my mind though, and eventually I want to add another statement, so I always end up using the more common block form.
foreach ( @array )
{
warn "Working on [$_]\n" if $Debug;
tr/a/z/;
warn "\tnow it is [$_]\n";
}
print() is the best debugger ever invented.
Various people have tried to conv
Subject and predicate (Score:2)
instead of
was not to save keystrokes, but to put the interesting part of the code first. I think of how I'd say it in English:
instead of
I think about that a lot. That's why I like the "open or die" metaphor instead of what I see as entirely backwards "die unless open".
--
xoa