Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Embed empty value using qw()

by MrNobo1024 (Hermit)
on Sep 03, 2001 at 19:27 UTC ( #109879=note: print w/ replies, xml ) Need Help??


in reply to Embed empty value using qw()

You could use

map { $_ ne 'NULL' && $_ } qw(one two NULL four five)
since && returns an empty string if the first condition is false.


Comment on Re: Embed empty value using qw()
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2015-07-05 09:48 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 (61 votes), past polls