Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: How do you place words from a sentence into an array?

by pg (Canon)
on Oct 26, 2004 at 16:21 UTC ( [id://402682]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
    $_ = "1 2\n3\t4\r\n5\n";
    my @words = split;
    print Dumper(\@words);
    
  2. or download this
    $VAR1 = [
              '1',
    ...
              '4',
              '5'
            ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-18 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found