After all that you should come with something like this:
chomp($user = `echo \$USER`); $TESTVAL = "~" . $user . "/foo";
Of course, the methods the other monks posted are probably a better idea than this. I'm trying to show you how to properly use the operators you chose.
Hope that helps.
Amel - f.k.a. - kel
In reply to Re: Perl and your environment
by dsb
in thread Perl and your environment
by P0w3rK!d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |