Re: [PBML] Split function
>>>>> "Prasanna" == Prasanna Goupal <perl_developer@...> writes:Prasanna> Hi,
Prasanna> This will give an expected output
Prasanna> $str = "one \"two three\" \"four five\" six seven";
Prasanna> my @array=split(/\"/,$str);
Prasanna> foreach $key (@array)
Prasanna> print $key,"\n";
No, it will have extra whitespace after the word one, and it
will put six and seven on the same line. It does *NOT*
solve the problem at hand.
I'm going to say this again,
IF YOU ANSWER HERE, PLEASE TEST YOUR ANSWERS FIRST.
To everyone else, might as well ignore this loon until he gets
his act together.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!