Be careful with variables named $a and $b, they are special when used in conjunction with sort.
For example:
gives you an reverse alphabetical (ASCIIbetical really) sort on @foo.sort { $b cmp $a } @foo;
TGI says moo
In reply to Re^2: chop() and chomp()
by TGI
in thread chop() and chomp()
by Parham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |