Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Getting a base name

by Tanalis (Curate)
on Jul 20, 2005 at 08:31 UTC ( [id://476415]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $base = ( split(/\./,$fname) )[0];
    
  2. or download this
    perl -Mstrict -w -e '
      my $fname = "test.txt";
      my $base  = ( split(/\./,$fname) )[0];
      print "$base\n";'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-23 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found