in reply to Create a TXT record for DKIM using Net::DNS
Assuming you want the output to singly escape the semi-colons, thusly:
v=DKIM1\; k=rsa\; t=y\;p=MIGfMA0GCSqGSIb3DQAFG....
you don't need to interpolate anything other than the escape (slash). Try using single quotes in the assignments
my $a = ';';
my $b = "\\" . ';';
"A petty consistency..." would suggest single-quoting a single slash, too, but run with ActiveState (w32), strict and warnings, that fails.
Can't find string terminator "'" anywhere before EOF at 742623.pl line 8.
If you escape the slash (eg: <c>my $b = '\\' . ';';, Perl will not complain.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Create a TXT record for DKIM using Net::DNS
by almut (Canon) on Feb 10, 2009 at 02:09 UTC | |
by nethawk (Initiate) on Feb 10, 2009 at 10:51 UTC |