in reply to Re^2: eval, Read environment variable and expand using eval
in thread eval, Read environment variable and expand using eval

You should be getting that since you're printing $stmt. You should *also* be getting the value of $ENV{HOST} or sqlhost.

Replies are listed 'Best First'.
Re^4: eval, Read environment variable and expand using eval
by cdarke (Prior) on Feb 19, 2010 at 09:27 UTC
    Remember that an environment variable can be defined yet empty. In sh:
    MYVAR=
    In perl:
    $ENV{MYVAR} = "";