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

Re: Date_GetPrev "error"

Thread Previous
From:
Tony Esposito
Date:
April 15, 2010 11:22
Subject:
Re: Date_GetPrev "error"
Message ID:
218531.48606.qm@web29012.mail.ird.yahoo.com
Thx.  I see that I do not need to do both!  Got it fixed.




________________________________
From: Uri Guttman <uri@StemSystems.com>
To: Tony Esposito <tony1234567893@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 <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


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