in reply to I am a beginner in perl,not able to get the output for the following

Does this do what you want?

#! /usr/bin/perl use Time::Local; my $time = timelocal 0,4,6,6,8,2007; print "Calculated time is $time.\n"; my $newtime = time(); print "While current time is $newtime.\n";
The output is:

C:\Code>perl timetest.pl Calculated time is 1189073040. While current time is 1188912743.

Replies are listed 'Best First'.
Re^2: I am a beginner in perl,not able to get the output for the following
by madhann (Initiate) on Sep 05, 2007 at 09:14 UTC
    Yeh,its working,Thank you so much.