Single quotes 'like this' prevent variables from being substituted. You want "double quotes".
Untested example:
my $foo='bar'; print "Foo is $foo\n"; print 'Foo is $foo\n';
should print:
Foo is bar Foo is $foo
...roboticus
Update: I should've mentioned: The term used when a variable is substituted into a string is "interpolation".
In reply to Re: passing $var to smtp subroutine
by roboticus
in thread passing $var to smtp subroutine
by csarid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |