I have version 5.6.1 running on win98. The file test
statement doesn't seem to work ( -e -f -T etc.). The
following code doesn't detect the existence of file
dston. 
#use POSIX;
($sec, $min, $hr, $mday, $mon, $yr, $wkday, $yrday,
$isdst) = localtime;
system ("dir dston");
if  (-T  dston){
  $offchn=15;
  $offphx=0;
}
else {
  print " dston not found \n";
  $offchn=16;
  $offphx= 1;
}
print "China:        ", scalar localtime( time +
$offchn*3600), "\n";
print "Los Angeles:  ", scalar localtime, "\n";
print "New York:     ", scalar localtime( time +
3*3600), "\n";

--------------------
It prints out the message "dston not found" even tho
the system command lists the file ok. Thanks.


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to