Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
From what I understand using that code it should know to look in /home/public_html/cgi-bin for the DATA99.pm file and then call the WasonE subroutine.#!/usr/bin/perl -wT use strict; use CGI qw(:standard); use lib "/home/public_html/cgi-bin"; use DATA99 qw(WasonE);
From what I understand from this it packages the DATA99 file and Exports it, then Exports the Subroutine WasonE if a script asks for it (our @EXPORT_OK = qw(WasonE);).package DATA99; require Exporter; our @ISA = ("Exporter"); our @EXPORT_OK = qw(WasonE); sub WasonE { variables... } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: external subroutine
by saskaqueer (Friar) on May 20, 2004 at 04:46 UTC | |
by Anonymous Monk on May 20, 2004 at 04:58 UTC | |
by saskaqueer (Friar) on May 20, 2004 at 05:09 UTC | |
by Anonymous Monk on May 20, 2004 at 20:40 UTC | |
by mrpeabody (Friar) on May 21, 2004 at 01:25 UTC | |
| |
by graff (Chancellor) on May 20, 2004 at 05:21 UTC | |
|
Re: external subroutine
by Scarborough (Hermit) on May 20, 2004 at 10:09 UTC | |
by Anonymous Monk on May 20, 2004 at 21:05 UTC |