simon.proctor has asked for the wisdom of the Perl Monks concerning the following question:
Why does c get assigned the value of b?my $a = 22; my $b = 5; my $c = ($a, $b++); print $a,"\t",$b,"\t",$c,"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpected variable assignment
by dragonchild (Archbishop) on Apr 09, 2003 at 21:57 UTC | |
by jonnyfolk (Vicar) on Apr 09, 2003 at 22:31 UTC | |
by chromatic (Archbishop) on Apr 09, 2003 at 22:42 UTC | |
by jonnyfolk (Vicar) on Apr 10, 2003 at 10:48 UTC | |
by dragonchild (Archbishop) on Apr 09, 2003 at 22:41 UTC | |
|
Re: Unexpected variable assignment
by Mr. Muskrat (Canon) on Apr 09, 2003 at 21:58 UTC | |
|
Re: Unexpected variable assignment
by PodMaster (Abbot) on Apr 10, 2003 at 06:06 UTC | |
|
Re: Unexpected variable assignment
by Vorlin (Beadle) on Apr 09, 2003 at 22:42 UTC | |
|
Re: Unexpected variable assignment
by pg (Canon) on Apr 10, 2003 at 03:45 UTC |