http://qs1969.pair.com?node_id=726414


in reply to Re: shift doesnt shift
in thread shift doesnt shift

That was it. It was shifting off @_. Thanks.

Replies are listed 'Best First'.
Re^3: shift doesnt shift
by vlsimpson (Beadle) on Nov 27, 2008 at 20:31 UTC

    Sometimes it pays not to depend on the default targets.

    I've banged my head on similar problems just because I didn't know or misunderstood what was being read.

    So now I always use whatever is needed explicitly, e.g., shift(@ARGV). But that's just me because I basicly suck at programming ;). Not a pro by any means.

      Personally I'm not a big fan of implicit things like that.

      I never use $_ unless I "have to", like in a map, because not naming the variable is a lost opportunity to write clear, self documenting code.

      /J