[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] shift; vs my $temp = shift;



At 11:39 -0500 2000.11.22, Scott R. Godin wrote:
>
>*incredulous head-scratching*
>
>Bart, the oddest thing is that it WAS working.. for at least two weeks(!)..
>and suddenly stopped as I've made further changes to the code.
>
>I don't remember what I changed, but obviously that's besides the point now.
>
>Thanks for the wake-up-call. Thought I was losing my mind. =:\

I think what you probably had done is assign $_ before calling the
function.  $_ is a global, and would have retained the value when accessed
in the function.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org