[ic] newbie question: subroutines
Ryan Hertz
rhertz@gyb.baits.com
Fri, 02 Mar 2001 17:45:07 -0700
>Hello again-
> Here is an example of my problem, regarding GlobalSubs. There
> was one
>already in my interchange.cfg file, and it looks likes this:
>
>GlobalSub sub test_global_sub { return 'Test of global subroutine OK.'; }
>
>Pretty easy, eh? So I use a perl tag in a page that looks like this:
>
>[perl]
>return test_global_sub();
>[/perl]<br>
>
>Now when I try to serve this page, nothing is displayed. I get the
>following in error.log (in the catalog directory):
>
>66.12.71.6 rbuCIMHW:66.12.71.6 - [01/March/2001:16:06:29 -0800] imp
>/cgi-bin/imp/catalog.html Safe: Unable to create sub named
>"*MVSAFE::test_global_sub" at (eval 236) line 2.
In your interchange.cfg -- make sure that AllowGlobalSubs is Yes. :-)
Ryan Hertz tel 800-645-BAIT
Webmaster fax 520-645-2588
Advertising Director http://www.baits.com
Gary Yamamoto Custom Baits, Inc. mailto:rhertz@baits.com