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

[MacPerl] Bug in MacPERL 5.1.0



Hi,

    I believe that I have found a bug in MacPERL 5.1.0.  The following code
snippet works fine under 5.0.7, but returns -1's in 5.1.0.

---
#!/usr/bin/perl
require 'timelocal.pl';

$Time = time;
$LocalTime = timelocal( localtime( $Time ) ); 
$GMTime = timegm( gmtime( $Time ) );

print "Time     : $Time\n";
print "LocalTime: $LocalTime\n";
print "GMTime   : $GMTime\n";
---

Thanks,
-Frank
---------------------------------------------------------------------------
    Frank J. Faubert, Jr.         |           Sane Solutions, LLC.
  Chief Information Officer       |     INTERNET - INTRANETS - SOFTWARE
      frank@sane.com              |   (800) 407-3570  http://www.sane.com
---------------------------------------------------------------------------