I am new to perl. Can anybody tell me how come my following script
cannot work? I am using perl on HP-UX 10.20.
$newtime = localtime (time + 10*60 );
print ("New time is:$newtime");
When I run it , it doesn't show what the new time is, Why?
New Response on 14/02/00:
I have tried all you recommended but still got nothing came out when I run it. It seems localtime()
does not work at all on my system. Do I need to link to any additional perl libraries before I run it or
do I need to initialize $time before I call localtime() ?
New Response on 18/02/00:
What I see when key in your commands is shown as below,
New Response on 19/02/00:
I got the following when running "perl -v"
# perl -v
This is perl, version 4.0
$RCSfile: perl.c,v $$Revision: 220.127.116.11 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
Copyright (c) 1989, 1990, 1991, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.