$a and $b can be declared lexically and then will have whatever value is assigned to them, if any. They don't have to be package variables (though they are if they haven't been assigned to). Still, I agree that it's a good idea not to use these variables. Of course, $x and $y might not be very descriptive, depending upon how they are used :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group.
New address of my CGI Course.
In reply to Re: Re: variables allowed inside iterative loops in regular expressions?
by Ovid
in thread variables allowed inside iterative loops in regular expressions?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |