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

Re: run a perl script for all files in a folder

by aaron_baugher (Curate)
on Aug 06, 2012 at 13:01 UTC ( #985698=note: print w/replies, xml ) Need Help??

in reply to run a perl script for all files in a folder

Wrapping one perl script in another perl script just to loop through files tends to look like overkill to me. Just use the shell:

$ for i in folder/* ; do perl <$i; done

Aaron B.
Available for small or large Perl jobs; see my home node.

Replies are listed 'Best First'.
Re^2: run a perl script for all files in a folder
by lakssreedhar (Acolyte) on Aug 08, 2012 at 05:45 UTC

    2 Aaron.I tried the shell but it produces an error like cannot open the file

      Thanks Aaron,your shell script worked

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985698]
[thepkd]: Hi, in trying to create an Array of Hash of Array of Hash. You read it right. Is it possible to dereference it without using temps?
[GotToBTru]: what are temps?
[GotToBTru]: you can always have ${${${$array[0]}{ key1}}[1]}{key2}
[GotToBTru]: I think I have that inside out .. but you get the point

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2016-12-06 13:16 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.