Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perl glob

by Eily (Hermit)
on Nov 07, 2013 at 14:45 UTC ( #1061593=note: print w/ replies, xml ) Need Help??


in reply to perl glob

Instead of system "perl converter.pl $_" you could use do. If you could rewrite converter.pl to work on $_ you could replace your loop with do "converter.pl" for @files. Or even better if converter.pl can work on all arguments:

{ local @ARGV = @files; do "converter.pl"; }

And if you don't want to rewrite converter.pl :

foreach (@files) { local @ARGV = $_; do "converter.pl"; }


Comment on Re: perl glob
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2014-08-27 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls