Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Understanding regular expressions: why do I have to use map to clear up undefs in regex output?

by eric256 (Parson)
on Jun 22, 2009 at 16:57 UTC ( #773686=note: print w/ replies, xml ) Need Help??


in reply to Understanding regular expressions: why do I have to use map to clear up undefs in regex output?

Yet another solution ;) Just remove the quotes after you do your splitting.

@b = map { s/\"//g; $_ } @a;


___________
Eric Hodges


Comment on Re: Understanding regular expressions: why do I have to use map to clear up undefs in regex output?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://773686]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-30 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls