Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: perl glob

by Eily (Curate)
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 $_" you could use do. If you could rewrite to work on $_ you could replace your loop with do "" for @files. Or even better if can work on all arguments:

{ local @ARGV = @files; do ""; }

And if you don't want to rewrite :

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

Comment on Re: perl glob
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-11-28 20:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (744 votes), past polls