I like this solution! Cool....
Thanks George and David.
JW
--- George Schlossnagle <[EMAIL PROTECTED]> wrote:
>
> On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior
> Programmer Analyst --- WGO wrote:
>
> > Jeff Westman wrote:
> >> This may sound trivial, but I am trying to declare and assign multiple
> >> scalars to the same variable in the same statement. This is what I
> >> have:
> >>
> >> #!/bin/perl -w
> >> $a = $b = "apple"; # works
> >> use strict;
> >> my ($a = $b) = "apple"; # does not works
> > do:
> > my ($a,$b) = ("apple", "apple");
>
> or
>
> my ($a, $b) = ("apple")x2;
>
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]