Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Open a directory and recursively process files

by blue_cowdawg (Monsignor)
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 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012567]
[Discipulus]: chickenman do you know which kind of configuration file do you have? it is some standard?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2018-02-20 08:06 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (268 votes). Check out past polls.