qw( john jacob $name ) is equivelent to

('john', 'jacob', '$name')  notice the single quote. The single quotes does
not interpolate (use the special meanings of special charaters, so the $
doesn't designate a varible name it's just a $ character).

see man perlop
or perldoc perlop

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 2:39 PM
To: [EMAIL PROTECTED]
Subject: qw for variables?


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?

Many TIA!
Dennis

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

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


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

Reply via email to