in reply to Re: HTML and CGI coding
in thread HTML and CGI coding
Cheers,# inline hyphens will cause problems D:\Temp>perl -MData::Dumper -e "use strict; print Dumper({-leading_min +us=>1,+plus=>1,in-line-minus=>1})" Bareword "in" not allowed while "strict subs" in use at -e line 1. Bareword "line" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. # what happened to the plus? D:\Temp>perl -MData::Dumper -e "use strict; print Dumper({-leading_min +us=>1,+plus=>1,'in-line-minus'=>1})" $VAR1 = { 'in-line-minus' => 1, '-leading_minus' => 1, 'plus' => 1 }; # this works fine D:\Temp>perl -MData::Dumper -e "use strict; print Dumper({-leading_min +us=>1,'+plus'=>1,'in-line-minus'=>1})" $VAR1 = { 'in-line-minus' => 1, '-leading_minus' => 1, '+plus' => 1 };
UPDATE:If in doubt use either Text::Quote->quote_key() or qw:
{qw( -align CENTER -valign TOP -BGCOLOR blue -font-color yellow -FONT-FAMILY verdana,arial,helvetica -FONT-SIZE 12 )}
--- demerphq
my friends call me, usually because I'm late....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: HTML and CGI coding
by davis (Vicar) on Dec 09, 2002 at 12:56 UTC | |
by LTjake (Prior) on Dec 09, 2002 at 13:09 UTC | |
by demerphq (Chancellor) on Dec 09, 2002 at 13:12 UTC |