in reply to Re^2: Recover a variable from a loop
in thread Recover a variable from a loop
But you report this error:
And, in the code that you have shown, line 33 is within the loop.Global symbol "%white" requires explicit package name at MyTest.pm lin +e 33.
If the code you show is not exactly the same as the one you run, it is difficult for us to figure out where exactly the error is occurring.
Looking at it again, the error seems to be in:
in which you use 'white' as a hash %white, not a scalar $white. Besides, $white has fallen out of scope anyway, so you would not be to access $white either, unless you had declared it before the start of the loop.unless ($white{browser_name => $browser[0]} ...
|
|---|