On Sun Sep 01 10:46:13 2013, zefram@fysh.org wrote: > Karl Williamson wrote: > >Within its scope Perl attempts to decode $! as best it can, > > Scoping doesn't work well for this sort of thing. The decoding happens in > get magic, when the variable is being read. If that behaviour is affected > by the lexical scope in which the reading happens, this means that > different readers will see different values in the same variable, which > is awfully confusing if a reference to the variable gets passed around. A new global variable is another option. -- Father Chrysostomos --- via perlbug: queue: perl5 status: open https://rt.perl.org:443/rt3/Ticket/Display.html?id=119499Thread Previous | Thread Next