Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Open a directory and recursively process files

by blue_cowdawg (Prior)
on Jan 09, 2013 at 20:31 UTC ( #1012567=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Open a directory and recursively process files
in thread Open a directory and recursively process files

      I tried your sub, but it still does not work. ".:Permission denied at project6.pl line 16." Which is open FIN,"< $fname" or die "$fname:$!"; Any idea why this happens?

If you read the diagnostic carefully you'll notice it complains about the filename "." which is actually your current working directory. You forgot the line

next if ($file eq '.') || ( $file eq '..');
just prior to the call to the sub. I think I mentioned that a few answers ago...


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg


Comment on Re^3: Open a directory and recursively process files
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2014-07-23 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (137 votes), past polls