This is because $a and $b are really $main::a and $main::b. You can solve this in two other ways:
Frank Wiles <frank@wiles.org>
http://www.wiles.org
In reply to Re: sort routines crossing package lines
by ides
in thread sort routines crossing package lines
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |