Operating System - HP-UX
1833780 Members
2623 Online
110063 Solutions
New Discussion

Using dst.pl to test Daylight Saving Time changes - HP-UX 10.2

 
SOLVED
Go to solution
Derek M. Sleeper
New Member

Using dst.pl to test Daylight Saving Time changes - HP-UX 10.2

First, I would like to thank everyone on the previous threads that discussed the various options for updating tztab on my HP-UX 10.2 system. I was able to use the advice and extract a tztab file from a patch for a higher level of HP-UX.

I am having a problem using the dst.pl script that A. Clay Stephenson gave that reports the exact second before a time zone rule will be applied. When executing the script, I get the following errors:

Global symbol "opt_y" requires explicit package name at dst.pl line 184.
Global symbol "opt_n" requires explicit package name at dst.pl line 184.
Global symbol "opt_d" requires explicit package name at dst.pl line 184.
Global symbol "opt_u" requires explicit package name at dst.pl line 184.
Global symbol "opt_e" requires explicit package name at dst.pl line 184.
Execution of dst.pl aborted due to compilation errors.

In reading other forums, I checked my perl version and it is 5.004_01 .

I am wondering what changes I need to make to use this script.

Thanks in Advance –

Derek Sleeper
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Using dst.pl to test Daylight Saving Time changes - HP-UX 10.2

Hi Derek:

Your Perl is a bit old. Change line-184 from:

our ($opt_y,$opt_n,$opt_d,$opt_u,$opt_e);

...to:

use vars qw($opt_y $opt_n $opt_d $opt_u $opt_e);

...note the _absence_ of the commas in the modified line.

Regards!

...JRF...

Derek M. Sleeper
New Member

Re: Using dst.pl to test Daylight Saving Time changes - HP-UX 10.2

Thank you - that took care of it.

Derek
Derek M. Sleeper
New Member

Re: Using dst.pl to test Daylight Saving Time changes - HP-UX 10.2

Posted answer solved problem.