Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> there is no "use strict" in Awk or Bourne-family shells
In larger bash scripts (which should be turned to Perl scripts, really) I always start with
and put all code into a main() function, so that I can declare all variables with local. It's not as strict as strict, but it helps a lot.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In reply to Re^7: Summing numbers in a file
by choroba
|
|