in reply to Re: Increment of ip address
in thread Increment of ip address

Hi jdporter, Thanks !

What does it mean the $$ in:
sub add_to_ip($$)

Mosh.

Replies are listed 'Best First'.
Re^3: Increment of ip address
by northwind (Hermit) on Jun 16, 2005 at 18:41 UTC

    That would be a prototype, the subject of much discussion on usefulness verging on holy war status.  The Camel Book says the intent behind prototypes "... is primarily to let you define subroutines that work like built-in functions ..." (p. 226).  In this case, it is giving a contextual clue to perl that this sub accepts two scalars.