in reply to How to measure milliseconds with undefined sub from Camel book on HP-UX ?

Do you have require 'syscall.ph'; in your code to import these constants? If this doesn't exist, perhaps you need to run h2ph to build it? See the documentation for syscall.
  • Comment on Re: How to measure milliseconds with undefined sub from Camel book on HP-UX ?
  • Download Code

Replies are listed 'Best First'.
Re: Re: How to measure milliseconds with undefined sub from Camel book on HP-UX ?
by Anonymous Monk on Jan 23, 2001 at 19:31 UTC
    require 'syscall.ph' seems to have been the point. Today I replaced it by require '/home/users/mg/tmp/sys/syscall.ph' (where I generated syscall.ph yesterday with h2ph) and then the error msg mutated into syntax error at _h2ph_pre.ph line 2, near ".1(". So I commented out two funny lines in /home/users/mg/tmp/_h2ph_pre.ph (itīs not in dir sys):
    #unless (defined &A1.1) { sub A1.1() { 1 } }
    #unless (defined &S1.1) { sub S1.1() { 1 } }
    ...and now it works!. I hope this doesnīt blow up some other gory detail.
    Thanks for your help.