uksza has asked for the wisdom of the Perl Monks concerning the following question:
Hello wise monks,
stay in peace,
Lukasz
I know - commented code doesn't works, but can You tell my why?use warnings; use strict; my @l = qw/10 20 30/; #my $t += $_ foreach @l; my $t; $t += $_ foreach @l; print $t;
stay in peace,
Lukasz
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Counting variable initialization
by dragonchild (Archbishop) on Mar 29, 2005 at 18:58 UTC | |
Re: Counting variable initialization
by tlm (Prior) on Mar 29, 2005 at 18:25 UTC | |
by ikegami (Patriarch) on Mar 29, 2005 at 18:41 UTC | |
by tlm (Prior) on Mar 29, 2005 at 18:52 UTC | |
by eric256 (Parson) on Mar 29, 2005 at 19:34 UTC | |
Re: Counting variable initialization
by ambs (Pilgrim) on Mar 29, 2005 at 18:24 UTC |
Back to
Seekers of Perl Wisdom