Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if (($old_word eq $curr_word) and ($old_word2 eq $curr_word2)) { $data = head('http://web/web.html'); print $data->{'_headers'}->{'last-modified'}; use Data::Dumper; my ($dat) = Dumper $content =~ (/'last-modified' => (.*$)/i); print "$dat\n"; #Print to screen here and it does work here. my %mail = ( To => 'you@email.com', From => 'me@email.com', Subject => "NO CHANGE HERE", Message => "$old_word and $old_word2 Web page las +t updated ->$dat\n", ); $mail{smtp} = 'smtp'; sendmail(%mail) or die "\nProblem! $Mail::Sendmail::error\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing variable to an email message.
by Anonymous Monk on May 09, 2002 at 14:36 UTC | |
|
Re: Passing variable to an email message.
by kappa (Chaplain) on May 09, 2002 at 15:39 UTC | |
|
Re: Passing variable to an email message.
by adamcrussell (Hermit) on May 09, 2002 at 15:40 UTC | |
by Anonymous Monk on May 09, 2002 at 15:52 UTC | |
by adamcrussell (Hermit) on May 09, 2002 at 16:48 UTC | |
|
Re: Passing variable to an email message.
by Anonymous Monk on May 09, 2002 at 14:28 UTC |