Hi,

I want to perform a simple split operation, but can't get the regular expr
working. Can anybody help me on this?

my $line from a file read is:
xyz abc 12sd "pqr stz" dfg (delimited by blank char).

I'm doing
my ($par1, $par2, $par3, $par4, $par5) = split(/ /, $line);

and I'm getting
$par4 = "pqr
$par5 = stz", which I don't want.

I want $par4 = "pqr stz", & $par5 = dfg

Thanks in advance.
-Basak




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to