Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2017-03-29 01:53 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (343 votes). Check out past polls.