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

Re: using split

by imrags (Monk)
on Jul 23, 2009 at 04:52 UTC ( #782560=note: print w/replies, xml ) Need Help??

in reply to using split

Try this:
Update: Added 2 lines more and modified the var names as per svenXY!
$abc = 'i am going to split line1; and then line2; and then line3; and + assign to variables'; my ($no1,$no2,$no3) = (split/\;/,$abc); print "$no1\n","$no2\n","$no3\n"; my ($d,$e) = (split /\;/,$abc)[0,2]; # or anything [1,2] print $d,"\n",$e;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://782560]
[erix]: heh, you can record your tunes now, I hadn't seen that before
[erix]: and my solfège is a little rusty too
[stonecolddevin]: damn where's a working cblast? looks like several of them are out of commission
[erix]: Tanktalus home node has one
[stonecolddevin]: erix thanks mate
[stonecolddevin]: also lol @ "I stomped a crap"
[stonecolddevin]: Disciplus i was just amazed he's returned after the thorough stomp that BrowserUk and several other monks gave him for spreading crap info

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-06-22 20:42 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (529 votes). Check out past polls.