in reply to Re: variables allowed inside iterative loops in regular expressions?
in thread variables allowed inside iterative loops in regular expressions?
$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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: variables allowed inside iterative loops in regular expressions?
by dvergin (Monsignor) on Nov 06, 2002 at 20:25 UTC |