In article <[EMAIL PROTECTED]> wrote "Dennis G. Wicks" <[EMAIL PROTECTED]>:

> Greetings;
> 
> I can get qw to work for things like
> 
>         @n = qw( john jacob jingleheimer schmidt );
> 
> but something like
> 
>         @n = qw( $names );
> 
> doesn't work. I get the literal string "$names" in @n!
> 
> What does the equivalent of qw(???) for a variable?
> 
Do you mean that $names contains the string
"john jacob jingleheimer schmidt"

Then split is your friend:
@n = split / /, $names;

Greetings,
Andrea

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to