Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Can you tell what $$$\@ means?

by crusty_collins (Friar)
on Apr 27, 2008 at 03:42 UTC ( [id://683108]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://683108]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-24 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found