in reply to why qw() rather than ()
But trying that without the qw gives:$ perl -e 'print join(", ",qw(1 3 6 2));' 1, 3, 6, 2
Hope this helps.[jeroen@rulffk] perl -e 'print join(", ",(1 3 6 2));' Number found where operator expected at -e line 1, near "1 3" (Missing operator before 3?) syntax error at -e line 1, near "1 3" Number found where operator expected at -e line 1, near "3 6" (Missing operator before 6?) Number found where operator expected at -e line 1, near "6 2" (Missing operator before 2?) Execution of -e aborted due to compilation errors.
Jeroen
"We are not alone"(FZ)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: why qw() rather than ()
by arhuman (Vicar) on Jan 22, 2001 at 18:30 UTC | |
by jeroenes (Priest) on Jan 22, 2001 at 18:50 UTC | |
by tilly (Archbishop) on Jan 23, 2001 at 06:59 UTC |