Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: shift vs @_

by GrandFather (Sage)
on Oct 02, 2006 at 21:25 UTC ( #575960=note: print w/ replies, xml ) Need Help??

in reply to Re: shift vs @_
in thread shift vs @_

That depends on the diff tool you use. TortoiseSVN's diff shows changes within a line for example, so the extra verbiage associated with the shift is not required. Besides, generally the number of times you have to check deltas to solve a problem are many fewer than the number of times you look at the code in the process of writing or using it. An idiom that provides clarity in writing and use is more important than occasional merge or delta issues.

Using the list assignment form makes it easier to match the parameter list in the call with the required parameters - the assignment list self documents the required parameters (especially if good names are used).

DWIM is Perl's answer to Gödel

Comment on Re^2: shift vs @_

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2015-11-28 04:32 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls