Versusfor( @birds ) { next unless /bar/; s/puffin/poppin/; print; }
Maybe it's me or my choice of code, but I don't really see the second one as being much harder to understand.for $bird (@birds) { next unless $bird =~ /bar/; $bird =~ s/puffin/poppin/; print $bird; }
In reply to Re^9: Thread on Joel on software forum : "I hate Perl programmers."
by BUU
in thread Thread on Joel on software forum : "I hate Perl programmers."
by techcode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |