Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Reading Files

by perlguru22 (Acolyte)
on Nov 02, 2012 at 05:50 UTC ( #1001914=note: print w/replies, xml ) Need Help??


in reply to Re: Reading Files
in thread Reading Files

So
@words=split/\s+/
Like that?

Replies are listed 'Best First'.
Re^3: Reading Files
by kielstirling (Scribe) on Nov 02, 2012 at 05:55 UTC
Re^3: Reading Files
by 2teez (Vicar) on Nov 02, 2012 at 05:57 UTC

    Yes, like that if your input is split's default arugment $_.
    Or in your case:
    my @words = split/\s+/,$word;

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001914]
help
Chatterbox?
[choroba]: Yes, 216.92.34.251
[choroba]: depends on your DNS

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2018-05-21 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?