cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
Any way to do this:
using only one qw()? iemy @array = ('one', 'two', '', 'four', 'five');
where NULL represents the empty string?my @array = qw(one two NULL four five);
Of course, I could do this:
but that seems somehow... ugly?my @array = qw(one two), '', qw(four five);
And thanks to converter, I realise the difference between different releases :)
So, send me your 2 cents...
cLive ;-)
ps - well, it *is* the weekend...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Embed empty value using qw()
by rchiav (Deacon) on Sep 02, 2001 at 09:59 UTC | |
by BrentDax (Hermit) on Sep 03, 2001 at 09:52 UTC | |
Re: Embed empty value using qw()
by trantor (Chaplain) on Sep 02, 2001 at 15:25 UTC | |
Re: Embed empty value using qw()
by andye (Curate) on Sep 03, 2001 at 14:13 UTC | |
Re: Embed empty value using qw()
by MrNobo1024 (Hermit) on Sep 03, 2001 at 19:27 UTC | |
Re: Embed empty value using qw()
by dga (Hermit) on Sep 03, 2001 at 21:34 UTC | |
by BrentDax (Hermit) on Sep 04, 2001 at 00:07 UTC |