CodeJunkie has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a strange situation with trying to use Net::SMTP.pm.
When I try to connect using
It does not work, but when I don't use a variable and just putuse Net::SMTP; my $smtp_server='mail.webchalkboard.com'; my $smtp = Net::SMTP->new($smtp_server) or die "Failed:$!";
It seems to work ok.my $smtp = Net::SMTP->new('mail.webchalkboard.com') or die "Failed:$!" +;
Am I being dense here...? Can anyone tell me the difference between putting things in " " and ' ' and not at all?
i.e. my $value="this"; or my $value='that';I've also been wandering the best way to define a hash, i.e. $HASH{'key'} or $HASH{key} ??
Sorry to ask so many questions at the same time!
cheers,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strange Situation with Net::SMTP
by Thelonius (Priest) on Mar 25, 2003 at 15:00 UTC | |
|
Re: Strange Situation with Net::SMTP
by shotgunefx (Parson) on Mar 25, 2003 at 13:30 UTC | |
|
Re: Strange Situation with Net::SMTP
by pg (Canon) on Mar 25, 2003 at 17:54 UTC | |
by CodeJunkie (Monk) on Mar 25, 2003 at 21:05 UTC | |
by pg (Canon) on Mar 25, 2003 at 22:58 UTC | |
by phydeauxarff (Priest) on Mar 25, 2003 at 22:45 UTC | |
|
Re: Strange Situation with Net::SMTP
by nathan_j (Initiate) on Mar 26, 2003 at 05:56 UTC | |
|
Re: Strange Situation with Net::SMTP
by Anonymous Monk on Mar 27, 2003 at 20:53 UTC |