Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: String Splitting

by pbeckingham (Parson)
on Aug 18, 2005 at 19:03 UTC ( #484932=note: print w/ replies, xml ) Need Help??


in reply to String Splitting

If there are only two lines, there is no need to split.

my ($one, $two) = <$input>;
In list context, the <> operator returns a list.

Update: I completely misunderstood the question.



pbeckingham - typist, perishable vertebrate.


Comment on Re: String Splitting
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-02-07 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (246 votes), past polls