in reply to Re^8: Thread on Joel on software forum : "I hate Perl programmers."
in thread Thread on Joel on software forum : "I hate Perl programmers."
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Thread on Joel on software forum : "I hate Perl programmers."
by perrin (Chancellor) on Jun 17, 2005 at 04:27 UTC |