Trying to print the time from a substring (time is in Hex):
Why does this work?
print MYFILE scalar(localtime(0x506143ca)); # #Prints: Tue Sep 25 00:40:26 2012 #
But not this:
Any help is greatly appreciated! Thanks!my $daTime = "0x506143ca"; print MYFILE scalar(localtime($daTime)); # #Prints: The default date - something like Jan1 1969 #
In reply to Hex, Localtime and strings by theneil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |