in reply to Re: using reference to subroutine
in thread using reference to subroutine

I meant $_[0], the yes I know was for writing stupid code.The error was because I have to hand copy the code from one pc to another because one doesn't have internet.

Replies are listed 'Best First'.
Re^3: using reference to subroutine
by blazar (Canon) on Apr 07, 2007 at 10:31 UTC

    I meant $_[0], the yes I know was for writing stupid code.

    The error was because I have to hand copy the code from one pc to another because one doesn't have internet.

    The biggest error being not that of using @_[0] instead of $_[0], which is valid syntax and fundamentally does the right thing, but that of not putting the "yes I know..." part behind a comment sign, which does not.