Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: bsd_glob does not reset $! (The lessons learned)

by ikegami (Patriarch)
on Sep 29, 2006 at 15:33 UTC ( [id://575555]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @list = bsd_glob('~gnat', GLOB_ERR);
    
    ...
    
    die("glob returned no existing results\n")
       if not @list;
    
  2. or download this
    # XXX WRONG
    $rv = print $fh (...);
    ...
    if ($rv) {
       die("Unable to write to file: $!\n")
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found