Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Using split

by nite_man (Deacon)
on Mar 07, 2003 at 08:58 UTC ( [id://241089]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
         my @tmp = split(/\//, '/home/bin/scripts/test.pl');
         my $fname = pop @tmp;
    
  2. or download this
         my $fname = pop split(/\//, '/home/bin/scripts/test.pl');
    
  3. or download this
    *-*-*-*-*-*
    { firstname => 'Michael',
      quote     => 'Mice were crying and stinging but went on nibbling the
    + cactus', }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-29 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found