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

Re: File path added to file name variable

by toolic (Bishop)
on May 07, 2013 at 23:58 UTC ( #1032547=note: print w/ replies, xml ) Need Help??


in reply to File path added to file name variable

To get just UFLEX13_UD16B208.1apr25_03_45.stdf, you can use File::Basename in your foreach loop:
foreach my $file (@files) { print basename($file), "\n"; }

I can't find any mention of basename in File::Find::Rule.


Comment on Re: File path added to file name variable
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2015-07-07 20:58 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 (93 votes), past polls