On 10-09-12 04:58 PM, Aristotle Pagaltzis wrote:
* Shawn H Corey<shawnhco...@gmail.com>  [2010-09-10 14:30]:
On 10-09-10 03:02 AM, Eric Wilhelm wrote:
   sub foo {
     my $self = shift;

   my $self = shift @_;

Always put the array in the shift.

Why?

Regards,

So you will never have experienced Perl programmers come up to you and ask, "What does this shift do? It doesn't do anything; @_ is not set yet."

Things that behave differently should look different.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

The secret to great software:  Fail early & often.

Eliminate software piracy:  use only FLOSS.

Reply via email to