Re: Split NewLines

2003-08-18 Thread Li Ngok Lam
> > $string="1 > blabla"; > > When Im printing $string I get a new line between 1 and blabla, now I needt o > split that.. in > > my($number, $real_string) = split... my($number, $real_string) = split /\n/, $string; HTH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: Split NewLines

2003-08-18 Thread Hanson, Rob
Like this... $string="1 blabla"; my @lines = split("\n", $string); # testing... print "1: $lines[0]\n"; print "2: $lines[1]\n"; See perldoc -f split if you want more info on the command. Rob -Original Message- From: Pablo Fischer [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2003