Re: Queries - Newbie

2010-01-13 Thread Uri Guttman
> "d" == dolphin writes: d> Hi, d> I want to use perl and print time before and after sleep but not d> successful, can anyone advice? d> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime d> time; those variables contain the breakdown of time at the moment. d>

Re: Queries - Newbie

2010-01-13 Thread John W. Krahn
dolphin wrote: Hi, Hello, I want to use perl and print time before and after sleep but not successful, can anyone advice? #!/usr/bin/perl my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime time; my $timenow="$hour$min$sec"; print "It is now $timenow\n"; sleep 15; my $timelat

Queries - Newbie

2010-01-13 Thread dolphin
Hi, I want to use perl and print time before and after sleep but not successful, can anyone advice? #!/usr/bin/perl my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime time; my $timenow="$hour$min$sec"; print "It is now $timenow\n"; sleep 15; my $timelater="$hour$min$sec"; print "