[ic] Database Handle and Global Subs

Sheamus Nulty interchange-users@lists.akopia.com
Tue Jun 12 13:01:01 2001


Mark,

I've taken the global sub pdfcreate out of the [perl] tag and it no longer
has any problems. The problem I'm having now is how do I execute this tag
based on a particular variable being set. I've tried the following

[if scratch print ]
[pdfcreate [cgi orders] ]
[/if]

plus various other combinations however the if statement constantly just
causes the information after it to be printed as if its HTML. If I don't
have the global sub in perl what other method is there to do a comparison
other than above.

Thanks

Sheamus
----- Original Message -----
From: "Mark Johnson" <markj@redhat.com>
To: <interchange-users@developer.akopia.com>
Sent: 11 June 2001 23:12
Subject: Re: [ic] Database Handle and Global Subs


> Global subs are only run through safe when called in a [perl] tag. If
> you're running a global sub through a perl tag, you might consider
> instead writing a usertag that you don't have to call inside a perl tag.
>
> Other than that, I am unaware of any reasons you might be experiencing
> this error.
>
> Sheamus Nulty wrote:
> >
> > Mark,
> >
> > Did that and I'm getting the following error
> >
> > Safe: Can't locate object method "TIEHASH" via package "DBI::st" at
> > /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/DBI.pm line 683.
> >
> > I'm running version 1.13 of DBI.
> >
> > Read something before about using Safe ::Hole to stop this but I'm not
sure
> > where I'm suppose to put this command and its exact syntax.
> >
> > Sheamus
>
> --
> Mark Johnson
> Senior Systems Architect - Professional Services
> Red Hat, Inc.
> E-Business Solutions
> markj@redhat.com
> 703-456-2912
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>