Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to Pass more than one file in perl MY function

by tybalt89 (Monsignor)
on Sep 29, 2022 at 19:22 UTC ( [id://11147154]=note: print w/replies, xml ) Need Help??


in reply to How to Pass more than one file in perl MY function

my @files=<data/j*.[13a].txt>;

Replies are listed 'Best First'.
Re^2: How to Pass more than one file in perl MY function
by Marshall (Canon) on Sep 30, 2022 at 06:12 UTC
    Nice. I didn't expect that to work, but it does. I couldn't find any spec on what is allowed in the glob syntax, all I knew for sure was * and ?. I didn't know about a character set. Learned something new - thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found