[ic] How to Call a GlobalSub?

Hans-Joachim Leidinger jojo@leidinger.net
Tue, 27 Feb 2001 21:34:00 +0100


Mike Heins wrote:
> 
> Quoting Dave Barr (dave.barr@cricinfo.com):
> > Hi Sam & Mike,
> >
> > Likewise I have been having problems with the GlobalSubs, I attempted
> > what Mike suggested:
> >
> > ==snip===============
> > [perl subs=1]
> > test_global_sub()
> > [/perl]
> > ==/snip==============
> >
> > Using: IC 4.6.3 (tarball), Debian 2.2.17, Perl 5.005-03
> >
> > And here is the results from from the catalog and Interchange error logs
> > (absolutely identical):
> >
> > ==snip===============
> > 192.168.0.126 JXisUioQ:192.168.0.126 - [27/February/2001:10:03:16 +0000]
> > cishop /exec/cishop/test Safe: Unable to create sub named
> > "*MVSAFE::test_global_sub" at (eval 255) line 2.
> > ==/snip==============
> >
> 
> Works for me, albeit on RedHat 4.6.4, 6.1 and Perl 5.6.0. It has worked
> that way since MV3.00, it is part of my regression test suite.

Hmmmm....I've gotten the exact same error message with IC on FreeBSD.
This happen, if I add a sub into the catalog.cfg or interchange.cfg. But
if the sub is created as an UserTag, it works well. What is wrong?

Joachim

-- 
-------------Hans-Joachim Leidinger---------------------