in reply to Re: Mixing tied variables with goto label
in thread Mixing tied variables with goto label
You will need to hide the tie, sub TIESCALAR, and friends. This should be possible using evil eval. The FETCH needs to be special too. Instead of using an internal goto to produce the magic, it will return the current value in the STORE the first time, but the second time it will return a different label.
When it is run, the output will be unexpected:my $label; # magic setup happens here $label = 'START'; print "$label\n"; # prints START goto $label; exit; START: print "Hello, world\n"; END: print "Goodbye, cruel world\n";
In any case, if you happen to find some documentation explaining this behavior I would appreciate it.START Goodbye, cruel world
Cheers - L~R
|
|---|