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

Re: Python tricks

by soonix (Chancellor)
on Dec 18, 2018 at 12:55 UTC ( [id://1227392]=note: print w/replies, xml ) Need Help??


in reply to Python tricks

(There's some duplication between items IX and X, and)
my @r = <STDIN>;
will return whole lines as array element(s). You need
my @r = split ' ', <STDIN>;

Replies are listed 'Best First'.
Re^2: Python tricks
by pme (Monsignor) on Dec 18, 2018 at 15:08 UTC
    You are right, we need the split.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (1)
As of 2026-05-10 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.