spx2 has asked for the wisdom of the Perl Monks concerning the following question:
But what is striking is that you can call it like this and not worry that the lists will get merged before they will be used inside each_arraysub each_array (\@;\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@) { return each_arrayref(@_); }
I know that \@;\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@\@ is supposed to be some sort of prototype , I don't really understand what it does, what does this do ?my $ea = each_array(@a, @b, @c); while ( my ($a, $b, $c) = $ea->() ) { .... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: interesting prototype
by biohisham (Priest) on Feb 17, 2010 at 07:23 UTC | |
|
Re: interesting prototype
by Anonymous Monk on Feb 17, 2010 at 05:03 UTC | |
by spx2 (Deacon) on Feb 17, 2010 at 05:46 UTC | |
by chromatic (Archbishop) on Feb 17, 2010 at 06:27 UTC | |
by Anonymous Monk on Feb 17, 2010 at 07:19 UTC |