go ahead... be a heretic | |
PerlMonks |
Re: Is this code correctby linuxer (Curate) |
on Jan 29, 2009 at 23:20 UTC ( [id://740069]=note: print w/replies, xml ) | Need Help?? |
That doesn't make sense. sub info() declares info as a subroutine, which doesn't accept any arguments. Inside that subroutine you want to pass arguments to $nick and $reply. See:
This results in:
Please see perldoc perlsub; section Prototypes for details.
In Section
Seekers of Perl Wisdom
|
|