Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Not understanding 2 sentences in perldoc

by LanX (Saint)
on Jul 29, 2020 at 21:35 UTC ( [id://11120029]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found