in reply to Re: qw() problem
in thread qw() problem
HI,
careful with those comma's:
perl -e '@a = qw(a, b, c);map { print "$_\n"; } @a'
gives:
a, b, c
While:
perl -e '@a = qw(a b c);map { print "$_\n"; } @a'
gives:
a b c
With qw you can skip the comma...
UPDATE: sorry for the spelling mistake. It's commas! I've been reading slashdot too much lately.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: qw() problem
by Skeeve (Parson) on Oct 10, 2005 at 12:06 UTC | |
| |
|