in reply to adding elements to already exisiting elements in an array
See perldoc -f ref for some details...if ( ref( $Elements[$1] ) eq "ARRAY" ) { push ( @{$Elements[$l]} }, $value ); } else { $Elements[$1] = [$value]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding elements to already exisiting elements in an array
by johngg (Canon) on May 15, 2008 at 10:17 UTC |