in reply to Re: Advanced array permutation
in thread Advanced array permutation

tye's solution uses prototypes. Because it does, it must be declared above where it is used. You can either define it above the usage or just declared it above, as seen here:
sub foo (@$); .... # Some usage of foo() here .... sub foo (@$) { # Blah blah blah }

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
(tye)Re2: Advanced array permutation
by tye (Sage) on Mar 20, 2002 at 16:35 UTC

    Alternately, you can delete the prototype and pass in a reference to the array directly: nextpermute(\@list).

    BTW, Avi, next time, if you reply to my (or whoever's) node rather than to your original question, you are likely to get a faster answer as I get notified of replies to my nodes (see User Settings).

            - tye (but my friends call me "Tye")