Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

(ar0n: split methinks) Re: novice

by ar0n (Priest)
on Sep 27, 2000 at 13:35 UTC ( [id://34166]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = "  one two three    four five six";
    @ary = split;
    print $ary[3];
    
  2. or download this
    $str = "  one two three    four five six";
    $str =~ s/^\s+//;  # remove leading spaces
    
    @ary = split /\s+/, $str;
    print $ary[3];
    

Log In?
Username:
Password:

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

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

    No recent polls found