in reply to Re^2: possible to assign symbolic references?
in thread possible to assign symbolic references?
Aliases would be less expensive once created. However, using aliases introduces more magic (especially if Data::Alias is involved) and creates more action at a distance (making the code less clear and harder to debug).
Actually, even simpler would be to use neither. The problem only exists because the addition of the scalars to the data structure is done at the top of the code.
my ($var1, $var2, ...); ... push @array, [ $var1, $var2, ... ];
The downside is that you might have to guard against exceptions and returns.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: possible to assign symbolic references?
by perl-diddler (Chaplain) on Sep 22, 2010 at 01:03 UTC | |
by ikegami (Patriarch) on Sep 22, 2010 at 02:13 UTC | |
by perl-diddler (Chaplain) on Sep 22, 2010 at 04:46 UTC | |
by ikegami (Patriarch) on Sep 22, 2010 at 05:13 UTC |