in reply to Re: getting ancestors of element
in thread getting ancestors of element

Thanks for reply. Maybe you can tell me what arguments are implied in sub r($$$;$) Not familiar with that string of special variables. Thanks

Replies are listed 'Best First'.
Re^3: getting ancestors of element
by Athanasius (Archbishop) on Aug 31, 2012 at 15:25 UTC

    See perlsub. $ means a scalar value, and

    A semicolon (;) separates mandatory arguments from optional arguments.

    So, sub r($$$;$) means: r is a subroutine prototyped to take at least 3, and at most 4, scalar arguments.

    Hope that helps,

    Athanasius <°(((><contra mundum