Click to See Complete Forum and Search --> : sub routine parameters


jumper
09-09-2005, 05:54 AM
I'm currently looking at a program written in 28 February 2001 and each of the sub routines have 3 dollar signs between brackets

sub purge_audit_trail($$$)
{

I haven't been able to find any thing about this by googling, is it an old way of writing declarations, or is there more to it ?


tia,

Charles
09-09-2005, 05:12 PM
In perl all parameters are squezed together into one list. Those dollar signs are a compiler directive to make sure that you've passed the sub three scalar values. See http://search.cpan.org/dist/perl/pod/perlsub.pod#Prototypes .

jumper
09-13-2005, 07:56 AM
thanks for that Charles