Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by RichardK (Vicar)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2015-07-29 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls