develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #119499] $! returned with UTF-8 flag under UTF-8 locales only under 5.19.2+

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
September 1, 2013 18:33
Subject:
[perl #119499] $! returned with UTF-8 flag under UTF-8 locales only under 5.19.2+
Message ID:
rt-3.6.HEAD-1873-1378060394-1244.119499-15-0@perl.org
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=119499

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About