Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Don't ask to ask, just ask
 
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.


Comment on Re: passing $var to smtp subroutine
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 wandering the Monastery: (13)
As of 2014-04-16 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls