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

Re: How to run multiple xml in a directory on a single perl script

by RichardK (Parson)
on Jun 03, 2014 at 12:43 UTC ( #1088416=note: print w/replies, xml ) Need Help??


in reply to How to run multiple xml in a directory on a single perl script

To get a list of all the xml files, I think it's much easier to use glob

my @docs = glob('dir/*.xml');

BTW, do check the docs to fully understand how glob works, (paths with spaces may not work as you expect!).

  • Comment on Re: How to run multiple xml in a directory on a single perl script
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088416]
help
Chatterbox?
[stevieb]: been thinking... if it wasn't for Perl, I believe that I'd be done in tech. I don't do social media or the like, if I'm not coding I'm not on a device at all, and don't miss comms at all when I'm not around. I code for my job (which I like), but I think..
[stevieb]: ...I haven't coughed up my laptop because of Perl.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2017-03-29 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (343 votes). Check out past polls.