Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Iterating through Hashes in Files

by ssandv (Hermit)
on Mar 29, 2010 at 20:23 UTC ( #831698=note: print w/ replies, xml ) Need Help??


in reply to Iterating through Hashes in Files

Angle brackets, in addition to being shorthand for readline, also can be used to perform globbing (wildcard expansion). So, <*Cmd.pm> will return a list of all the filenames of the format you describe. Ultimately you'll have to "run through" a list/array at some point, but that allows you to get the list dynamically instead of hardcoding it (provided that every file in the directory that matches the wildcard is a file you want to look in).


Comment on Re: Iterating through Hashes in Files
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-08-28 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (341 votes), past polls