in reply to On bad habits
perrin: What's the point of having $_ and @_ if you don't use them? I will agree that any reasonably large sub should define variables for the contents of @_, but it's just so much neater to do a series of regexes on $_ than on a variable. I use it as much as possible.@arr = qw/aaa aba abb bac efg/; tr/a/x/ for @arr; print join ' ', @arr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: On bad habits
by perrin (Chancellor) on Jul 25, 2005 at 03:38 UTC |