in reply to
Re: newbie split question
in thread
newbie split question
Or...
<code> $string = "\"Foo\",\"Bar\",\"Baz\""; # Split by comma instead... @words = split(/,/, $sting); # ..and then remove the quotes foreach $word (@words) { $word =~ s/"//sg; }
Comment on
RE: Re: newbie split question
Replies are listed 'Best First'.
RE: RE: Re: newbie split question
by
Adam
(Vicar)
on May 08, 2000 at 22:45 UTC
But that requires a change to the string, in which case you would just make the string more straight forward with a simpler separator.
[reply]
In Section
Seekers of Perl Wisdom