leonidlm has asked for the wisdom of the Perl Monks concerning the following question:
If I run this subroutine couple of times the $b value is saved from call to call !!!!my $a,$b; while ( somethingHere ) { $b .= "s"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ptkdb: 'my' variable in sub retains value between calls
by betterworld (Curate) on Aug 10, 2008 at 15:53 UTC | |
|
Re: ptkdb: 'my' variable in sub retains value between calls
by FunkyMonk (Bishop) on Aug 10, 2008 at 16:07 UTC | |
by leonidlm (Pilgrim) on Aug 10, 2008 at 16:11 UTC | |
by GrandFather (Saint) on Aug 10, 2008 at 22:53 UTC | |
by Anonymous Monk on Aug 11, 2008 at 02:16 UTC | |
|
Re: ptkdb: 'my' variable in sub retains value between calls
by Herkum (Parson) on Aug 10, 2008 at 16:05 UTC | |
by JavaFan (Canon) on Aug 11, 2008 at 12:12 UTC |