I need to split a string on " or '.

I have tried following lines in my script:

my @fields = split(/["']/,$_);

my @fields = split(/[\"\']/,$_);

but its not working as expected. It looks to be missing the " as a split char.

I also tried 

my @fields = split(/[\034\039]/,$_);

Is it possible the missed " is a unicode char or something like that ?

TIA,


-- 

Karyn Stump
Network Services Manager
California Institute of the Arts
[email protected]
http://noc.calarts.edu

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to