Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Skipping files in a directory

by svenXY (Deacon)
on Dec 11, 2008 at 10:53 UTC ( [id://729660]=note: print w/replies, xml ) Need Help??


in reply to Skipping files in a directory

Hi,
if (opendir DIR,$dir) { # do stuff with contents } else { print "[WARNING] $dir not present\n"; }

This will work without continue. continue works with loops like for, foreach, while, but - AFAIK - not with a simple opendir statement
  • Regards,
    svenXY
  • Log In?
    Username:
    Password:

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

    How do I use this?Last hourOther CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (4)
    As of 2024-04-25 12:15 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found