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;


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



Reply via email to