Thx.  I see that I do not need to do both!  Got it fixed.



________________________________
From: Uri Guttman <u...@stemsystems.com>
To: Tony Esposito <tony1234567...@yahoo.co.uk>
Cc: Beginners Perl <beginners@perl.org>
Sent: Thu, 15 April, 2010 13:04:09
Subject: Re: Date_GetPrev "error"

>>>>> "TE" == Tony Esposito <tony1234567...@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  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------



      

Reply via email to