Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$counter=0; while(<>) { $counter++; $variable_name = "bin_".$counter; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use an incrementing counter as a variable
by haukex (Archbishop) on Sep 11, 2017 at 11:46 UTC | |
|
Re: Use an incrementing counter as a variable (arrays)
by LanX (Saint) on Sep 11, 2017 at 12:25 UTC | |
by AnomalousMonk (Archbishop) on Sep 11, 2017 at 17:15 UTC | |
|
Re: Use an incrementing counter as a variable
by Happy-the-monk (Canon) on Sep 11, 2017 at 11:54 UTC | |
|
Re: Use an incrementing counter as a variable
by thanos1983 (Parson) on Sep 11, 2017 at 15:54 UTC | |
|
Re: Use an incrementing counter as a variable
by Anonymous Monk on Sep 11, 2017 at 13:10 UTC |