What about something like:
my @array = map { $_ eq 'NULL' ? '' : $_ } qw(one two NULL four five);
It could be worth it when you have lots of NULLs
-- TMTOWTDI
Update: I didn't notice that cLive ;-) wanted an empty string and not an undef
In reply to Re: Embed empty value using qw()
by trantor
in thread Embed empty value using qw()
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |