Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: passing $var to smtp subroutine

by balakrishnan (Monk)
on Feb 07, 2009 at 06:57 UTC ( #742093=note: print w/ replies, xml ) Need Help??


in reply to passing $var to smtp subroutine

line which is having the mistake :
$smtp->to('$emailid\@address.com');
proper line :
$smtp->to("$emailid\@address.com");
if you are using the single quotes for the string, then you
have to use the eval to get value of variables used
inside. Else you can go with double quotes.

Replies are listed 'Best First'.
Re^2: passing $var to smtp subroutine
by csarid (Sexton) on Feb 07, 2009 at 19:12 UTC
    Balakrishnan, Thanks that is exactly what I was looking for. Although I should have experimented a bit more on this before submitting the question. Thanks again!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://742093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-06-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (368 votes). Check out past polls.