in reply to Re: The function localtime(time) returns wrong month . How to overcome this problem ??
in thread The function localtime(time) returns wrong month . How to overcome this problem ??

No, scalar(@fingers)==10; but the first one is called 0

  • Comment on Re^2: The function localtime(time) returns wrong month . How to overcome this problem ??

Replies are listed 'Best First'.
Re^3: The function localtime(time) returns wrong month . How to overcome this problem ??
by swampyankee (Parson) on Feb 14, 2006 at 18:53 UTC

    if(! $careless_with_power_tools) { scalar(@fingers) == 10; } else { scalar(@fingers) < 10; }

    emc

    " When in doubt, use brute force." — Ken Thompson