Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
jedikaiti clicks Apple Fritter's button, despite being told not to. Tsk, tsk.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-07-27 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (422 votes). Check out past polls.