in reply to Build a list of defined var's
Of course your code would look rather ugly. But sometimes this approach can be useful.$variable{'a'} = 1; $variable{'b'} = $variable{'a'} + 1; foreach my $k (keys %variable) {$variable{$k} = $reset_value;}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Build a list of defined var's
by CountZero (Bishop) on Oct 20, 2009 at 18:48 UTC |