develooper Front page | perl.beginners | Postings from April 2010

Re: Date_GetPrev "error"

Thread Previous | Thread Next
From:
Uri Guttman
Date:
April 15, 2010 11:04
Subject:
Re: Date_GetPrev "error"
Message ID:
878w8oh9t2.fsf@quad.sysarch.com
>>>>> "TE" == Tony Esposito <tony1234567893@yahoo.co.uk> writes:

  TE> foreach (@dates) {
  TE>   pop(@dates);

why are you popping @dates there? you are looping over it from left to
right but also losing elements from the right.

  TE>   print $_ . "\n";
  TE> }

      

-- 
Uri Guttman  ------  uri@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About