you want split then..

my $names = "Jesus Mary Joseph";
my @n = split /\s+/, $names;


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


Greetings;

No, I mean if $names contains "Jesus Mary Joseph" and I do

        my @n = qw( $names );

I want the same results as if I had done

        my @n = qw( Jesus Mary Joseph );

Obviously qw() does not work this way, but I can't find the
equivalent that does.

Thanks,
Dennis

>}On Feb 19, 17:47, "=?iso-8859-1?q?Jonathan=20E.=20Paton?=" wrote:
>} Subject: Re: qw for variables?
>> What does the equivalent of qw(???) for a variable?
>
>You mean like:
>
>my @array = ($var1, $var2, $var3);
>
>Jonathan Paton
>
>__________________________________________________
>Do You Yahoo!?
>Everything you'll ever need on one web page
>from News and Sport to Email and Music Charts
>http://uk.my.yahoo.com
>
>-- 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>}-- End of excerpt from "=?iso-8859-1?q?Jonathan=20E.=20Paton?="



-- 
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