From: Mike Warne <mike.warne@pi...> - 2002-05-22 21:33:10
I have a need to call my own perl function. I have been using exec to =
call an external perl program, however this is proving very costly in =
resources, as I have load the program, and open a dbm database to =
retrieve values for each request, and I have a large number of points to =
I looked at the Cricket reference, however it does not describe the =
syntax for Func, there is no examples shown like is shown for file: or =
Anyone know how to call it? I tried this, but I get collector errors.
where BMS is a module I wrote, and getPoint is a function within it..
I don't know if it is a syntax problem, or a problem with the 2 colons =
From: Robert bobb Crosbie <bobb+<cricket-users@re...> - 2002-05-24 00:29:19
Mike Warne hath declared on Wednesday the 22 day of May 2002 :-:
> I have a need to call my own perl function. I have been using exec to call an external perl program, however this is proving very costly in resources, as I have load the program, and open a dbm database to retrieve values for each request, and I have a large number of points to retrieve.
The way I used it in the pase (if I recall correctly) is as the referance suggests.
uncomment ``use func'' in ``collector'' and add your function to ``collector''.
This will negate your need for the ``::''
You should be able to leave it in a seperate file and just require it too.
Get latest updates about Open Source Projects, Conferences and News.