in reply to qw() problem

You should have a look at perlop, specifically the section called "Quote and quote-like operators". This should explain qw etc.

I'm not 100% sure exactly what you're trying to achieve. Are you trying to make an array from the scalar value $all ? If so then split is your friend:

$all = "name1 name2 name3"; @arr = someFunc(@dd, split(/ /, $all));

s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&

Replies are listed 'Best First'.
Re^2: qw() problem
by Zaxo (Archbishop) on Oct 10, 2005 at 12:44 UTC

    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.

    my @arr = someFunc( @dd, split ' ', $all);
    The action of magical split on a variable is very like that of qw on its literal argument.
    my @args = qw/ name1 name2 name3 /; my $all = "\n name1\n name2\n name3\n"; my @arr = split ' ', $all;

    After Compline,
    Zaxo

Re^2: qw() problem
by jeanluca (Deacon) on Oct 10, 2005 at 12:22 UTC
    split works!!!, thanks!