[stuff cut out]
It is usually best to declare variables in the smallest scope possible so:
while (more work to do)
{
my @array = split $string;
# do work on array
}
Doesn't that try to re-localize (?) the @array variable every time through the loop? i.e. doesn't it re-run the my() function every time through the loop? For some reason I thought that was a no-no.
- Bryan
-- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
