[ILUG] perl subroutine params

Gavin McCullagh ilug_gmc at fiachra.ucd.ie
Thu May 9 17:04:02 IST 2002


this sorted it, thanks John,

Gavin

On Thu, 09 May 2002, John Gaughan wrote:

> It's because you're calling the subroutine with an "&" prefix.  This
> causes the the argument list to become optional, and prototype checking
> is also disabled.  For a bit more detail see the perlsub manpage, it's
> described before the section on private variables[1].
> 
> [1] http://perldoc.com/perl5.005_03/pod/perlsub.html#Private-Variables-via-my()





More information about the ILUG mailing list