Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by ikegami (Pope)
on Sep 29, 2006 at 15:33 UTC ( #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
Node Status?
node history
Node Type: note [id://575555]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-03-25 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.