& is not the concatenation operator in Perl. What you're looking for is the dot. For this example, there's no need to use it, though. Also, there's no reason to use backticks to get environment variables; they're stored in the %ENV hash.
my $testval = "~$ENV{USER}/foo";
In reply to Re: Perl and your environment
by myocom
in thread Perl and your environment
by P0w3rK!d
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |