it didn;t workPlease elaborate. It seems to work for me when I run your 2nd code example. Here is the output I get:
What do you expect the output to be? First, you print the statement verbatim, then you print the eval'd statement. I do not have the HOST variable set.$r = (defined $ENV{HOST} ? $ENV{HOST} : 'sqlhost') sqlhost
In reply to Re: eval, Read environment variable and expand using eval
by toolic
in thread eval, Read environment variable and expand using eval
by tart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |