"be consistent" | |
PerlMonks |
push to a referenced arrayby biga (Sexton) |
on Sep 27, 2008 at 20:10 UTC ( [id://714053]=CUFP: print w/replies, xml ) | Need Help?? |
This useful function performs 'push' into a referenced array. It creates the array if it doesn't exist.
SYNOPSIS: my $a={}; ref_push $a->{ARRAY}, "some", "list";But the code is a bit obfuscated... %)
Back to
Cool Uses for Perl
|
|