Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Separating file names from path names

by MZSanford (Curate)
on Oct 09, 2002 at 15:29 UTC ( #203960=note: print w/ replies, xml ) Need Help??

in reply to Separating file names from path names

In the event you cannot use any other modules (as seems to be common with questions of this sort), and you want the file name, with extention ... you could use :

my $file = $full_name; $file =~ s!.*\\!!g;
I think this is covered in The Perl Cookbook quite well.
from the frivolous to the serious

Comment on Re: Separating file names from path names
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-10-08 16:28 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (221 votes), past polls