Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_

by BrowserUk (Patriarch)
on Dec 04, 2007 at 18:55 UTC ( [id://654911]=note: print w/replies, xml ) Need Help??


in reply to Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_

I'd do it this way.

sub xyz { croak 'Bad args' unless @_ == 2 or @_ == 3; my( $yyy, $xxx, $ttt ) = reverse @_; ... }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Format / Logical Expression / Style Opinions: my, ternary, subroutine, @_
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found