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

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

by Athanasius (Chancellor)
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-08-17 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (290 votes). Check out past polls.

    Notices?