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.
Re: (Score:1)
?
Reply to This
Re: (Score:1)
perl -e 'print "Just another Perl ${\(trickster and hacker)},";'
The Sidhekin proves that Sidhe did it!
Re: (Score:1)
Same thing as Ovid’s, only painted green. Both his and yours make two to throw one away, whereas the approach I took does not.
Re: (Score:1)
perl -e 'print "Just another Perl ${\(trickster and hacker)},";'
The Sidhekin proves that Sidhe did it!
Readability (Score:1)
I think the best version is simply:
for ( my $i = 0; $i @_; $i += 2 ) {
}
It clearly selects even numbers and ends before just before the end of the array. The "@_" is more readable than "$#_", I say.
Re:Readability (Score:1)
?
The most readable is actually if you can afford to destroy the array, which in Ovid’s case is probably true (because it is usually true for
@_):