Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 rifling through the Monastery: (5)
As of 2018-07-15 23:37 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (328 votes). Check out past polls.