in reply to Re^5: Not understanding 2 sentences in perldoc
in thread Not understanding 2 sentences in perldoc

> it doesn't make much sense here,

I'm often using it for setting defaults before unpacking @_ which could have 0,1 or 2 arguments

 ( my ($x,$y) = (42,666) ) = @_;

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^7: Not understanding 2 sentences in perldoc
by haukex (Archbishop) on Jul 30, 2020 at 18:50 UTC
    I'm often using it for setting defaults before unpacking @_ which could have 0,1 or 2 arguments

    Sure, that makes sense ;-) With "it doesn't make much sense here" I meant the specific example with fixed values.

      I know you know, but I also know others don't know better.

      You know? ;)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery