Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[stevieb]: my RPi::WiringPi now fully supports: GPIO, LCDs, digital potentiometers, analog to digital converters, shift registers, barometric pressure sensor, direct access to SPI bus, and ability for more :)
[stevieb]: ...just need to perform many tests and POD review this week, then I'm going to put together some real projects and post about them

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-01-22 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (190 votes). Check out past polls.