Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Different behaviour of 'stat' function after assignment to $! (errno).

by jpl (Monk)
on May 24, 2011 at 13:20 UTC ( [id://906494]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Devel::Peek;
    $! = 0.0;
    ...
    stat("non_existing_file");
    Dump($!);
    die "died at second stat" if -$!;
    
  2. or download this
    SV = PVMG(0x82c690) at 0x803478
      REFCNT = 1
    ...
        MG_LEN = 1
        MG_PTR = 0x8032d0 "!"
    died at first stat at bug.pl line 6.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://906494]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found