Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: style guidance

by cdarke (Prior)
on Nov 08, 2009 at 13:37 UTC ( [id://805768]=note: print w/replies, xml ) Need Help??


in reply to style guidance

I am rather surprised that, on a topic with such a title, no one referred to "Perl Best Practices", which discusses the topic on page 180 (First Edition). TheDamian remarks that there are some circumstances when using shift is preferable. In a nutshell I read it to mean that this is when checking and commenting arguments singly.

If using Perl 5.10.0 there is an oops where an optimisation for list assignment was disabled, but I'm pretty sure it only applied to that release.

Replies are listed 'Best First'.
Re^2: style guidance
by 7stud (Deacon) on Nov 09, 2009 at 00:13 UTC

    there are some circumstances when using shift is preferable.

    To what? What are you referring to?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2025-11-13 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (69 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.