Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub builder() {
($data, $i) = @_;
$hash{$i[0]} = $data if @{ $i } == 1;
$hash{$i[0]}{$i[1]} = $data if @{ $i } == 2;
$hash{$i[0]}{$i[1]}{$i[2]} = $data if @{ $i } == 3;
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Nesting... or something.
by Fastolfe (Vicar) on Jun 03, 2000 at 19:56 UTC | |
by jettero (Monsignor) on Jun 03, 2000 at 21:16 UTC | |
by mdillon (Priest) on Jun 03, 2000 at 22:16 UTC | |
by jettero (Monsignor) on Jun 05, 2000 at 09:52 UTC | |
by Fastolfe (Vicar) on Jun 05, 2000 at 00:01 UTC | |
|
Re: Nesting... or something.
by Maqs (Deacon) on Jun 03, 2000 at 20:19 UTC |