in reply to How do I disable variable expansion of strings?

It's called "interpolation", and it's a feature ;-)

If you don't want interpolation, you should use single quotes around the strings, or escape the @ and $ with a backslash. Read perlintro for more information.

print '$lalala @foobar'; # works print "\$lalala \@foobar"; # works as well print q{$lala @foobar}; # yet another method

Replies are listed 'Best First'.
Re^2: How do I disable variable expansion of strings?
by seank (Acolyte) on Sep 04, 2007 at 10:01 UTC
    See previous response