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");

Wags ;)

>  my $a = my $b = "apple";  # works .. but looks ugly
> 
> I'm trying to get away from using multiple "my"s in the same
> statement.  I looked at FTP.pm, and for *lists* it's possible:
>  my ($ftp, $dir, $recurse) = @_;
> 
> Is there something I am not seeing?
> 
> Thanks
> 
> Jeff
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com



**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


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

Reply via email to