Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203960]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2017-08-19 02:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Who is your favorite scientist and why?



























      Results (310 votes). Check out past polls.

      Notices?