Because of their special use by sort(), the variables $a and $b are exempted from this check.You should avoid using $a and $b because they are special for the sort function. As the helpful message reports, you need to declare x and y with my.
In reply to Re: question on declaring variables
by toolic
in thread question on declaring variables
by badbanana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |