in reply to passing an array to a subroutine
What errors and warnings do you get?
Lines 7-9 look fishy to me. The require of FileDB.pm happens at runtime, too late for the definition of FileDB->new() in line 9. Try replacing line 7 with,
use lib '/u/web/cmpsf/cgi-local/schedules/cleaners'; use FileDB;
There are several ways to pass an array to a subroutine. You can either pass a reference to it as one arg, or else just add the array to the argument list. The former is best if the sub modifies the array, the latter if you just want to see the values. At least that's the convention I use.
After Compline,
Zaxo
|
|---|