To expand on AnomalousMonk's reply, which should save you a heap of typing in the future, HEREDOCs interpolate by default and double quotes do not need to be escaped. Neither do you need explicit line terminators. Note also that, unless you have used select to nominate a different filehandle, STDOUT is the default handle for output and does not need to be supplied to print. To stop interpolation do print <<'EOT'; instead, look at the documentation for more.
This script
use strict; use warnings; my $your_email_address = q{fred.bloggs@worthy.com}; my $your_name = q{Fred Bloggs}; print <<EOT; <input type="hidden" name="your_email_address" value="$your_email_addr +ess"> <input type="hidden" name="your_name" value="$your_name"> EOT
Produces this output
<input type="hidden" name="your_email_address" value="fred.bloggs@wort +hy.com"> <input type="hidden" name="your_name" value="Fred Bloggs">
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: pearl script working but is changing to attachment
by johngg
in thread pearl script working but is changing to attachment
by cwebber1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |