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
ka...@calarts.edu
http://noc.calarts.edu

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to