in reply to Re: qw() problem
in thread qw() problem
It doesn't matter with this $all, but there is a magical split which splits on all whitespace and trims any off the ends. It's triggered by using a quoted single space as the first argument.
The action of magical split on a variable is very like that of qw on its literal argument.my @arr = someFunc( @dd, split ' ', $all);
my @args = qw/ name1 name2 name3 /; my $all = "\n name1\n name2\n name3\n"; my @arr = split ' ', $all;
After Compline,
Zaxo
|
|---|