[ic] Database Handle and Global Subs

Mark Johnson interchange-users@lists.akopia.com
Thu Jun 14 13:28:00 2001


Sheamus Nulty wrote:
> 
> I'v setup the following. I have a global sub defined as follows in my
> interchange.cfg file
> 
> GlobalSub <<EOF
> 
> sub pdfshea {
> 
>  my $counter=5;
>  return "$counter";
> 
> }
> 
> EOF
> 
> I then run the following
> 
> [set print]1[/set]
> [if scratch print]
> [pdfshea]
> [/if]
> 
> and it just prints out  [pdfshea] to the webpage. So I'm of the opinion that
> [if] will just print out what comes after it .
> If this is the case is my only alternative the solution you provided.

Well, that should certainly not work because a global sub will not
define a usertag. And, if your pdfcreate usertag was, actually, a global
sub, then it will not work either.

This should help you out:

http://interchange.redhat.com/cgi-bin/ic/dev/ictags_91.html

-- 
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912