Note: the function name is to be pronounced like "mooolti-pooosh", like Leeloo in "The Fifth Element". Failure to do so might cause the future to cease to be.
sub multi_push { my $adj = @_/2; while (@_) { my $arg = splice(@_, $adj--, 1); push @{ +shift }, $arg; } } multi_push( (\@names, \@ages, \@locs) => split /::/, $record );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: multi-push
by tye (Sage) on Feb 14, 2001 at 22:34 UTC | |
|
multi-push-super (Re: multi-push)
by gryng (Hermit) on Feb 14, 2001 at 21:58 UTC | |
by japhy (Canon) on Feb 14, 2001 at 22:05 UTC | |
by gryng (Hermit) on Feb 14, 2001 at 22:09 UTC |