Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: get list of files matching part of file name

by Athanasius (Canon)
on Jul 11, 2012 at 13:29 UTC( #981116=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (my $basename = fileparse($file)) =~ s/ \. .* $ //x;
    
  2. or download this
    printf "'%s' matches: %s\n", $basename, join(', ', @matches);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2016-08-30 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (410 votes). Check out past polls.