NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
German error messages (Score:1)
in IPC::Run::IO? It's string-matching against
$!, which is pretty stupid. Is 'Ulazno/izlazna greáka' simply (mangled) Croatian for EAGAIN?Re: (Score:1)
It is more pervasive than just the single spot.
Adding || $@ =~ /^Ulazno\/izlazna gre/ at line 2404 of Run.pm causes the error to go away.
I think using $! in numeric context gives access to the errno value which would be portable between locales but you may need some help from IO::Pty in order to get access to that.
Re:German error messages (Score:1)
$!still having the right value by the time the exception is caught. Really all thosecroaks in_read&c. should be throwing proper exception objects which catch the (numeric) value of$!. I would want to switch the whole thing to use autodie, but that's quite a major change.Reply to This
Parent