crusty_collins has asked for the wisdom of the Perl Monks concerning the following question:

Just curious, but what does this mean? I was browsing some code from sourceforge and came across a function that starts like this
sub extract_seed_page($$$\@){ my ($filepath, $keyword, $percent, $phrase_list_ref) = @_;

Replies are listed 'Best First'.
Re: Can you tell what $$$\@ means?
by kyle (Abbot) on Apr 27, 2008 at 04:07 UTC
      Thanks for that. I guess now I will do some reading on prototypes.

        Read just enough to recognize them when you see em. Prototypes are one of the corners of Perl that tend to be left unused for the most part because they tend toward surprising behavior.


        Perl is environmentally friendly - it saves trees
Re: Can you tell what $$$\@ means?
by GrandFather (Saint) on Apr 27, 2008 at 04:02 UTC

    It's a sub with a prototype. The prototype specifies that the sub takes three scalar parameters and a reference to an array.


    Perl is environmentally friendly - it saves trees