[ic] Problem with using %Db in local usertags (4.7.x)

Stefan Hornburg Racke racke@linuxia.de
19 Apr 2001 19:44:08 +0200


Hello,

I'm having a usertag like this:

UserTag example Routine <<EOF
sub {
    $db = $Db{'whatever'};
    unless ($db) {
        Log ("No such database: %s", 'whatever');
        return;
    }
}
EOF

If I call [example] on a page, I get an error "No such database".
The error can be avoided by placing [perl tables=whatever]
anywhere before [example]. This seems rather clumsy to me.

The database in question is SQL.

Any hints to improve this ?

Bye
        Racke

-- 
Alter ego of LinuXia Systems (URL: http://www.linuxia.de),
Debian maintainer (e.g. Courier Mail Server suite), Interchange developer;
For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)