Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
VisualFormat Editor
System
why does this snippet of perl not work? (note: it is at line # 68 in my tpl file.)
<iw_perl>
my $tableclass=iwpt_dcr_value "shortDescription.shortIntroduction");
$tableclass =~ s/tr><td>/tr><td width=\"20%\">/;
</iw_perl>
i am trying to replace the first occurance of each table data cell in a row with a width specification. perl seems to be objecting to the < & > signs. Even if i try "escaping" them, i still get the error.
i keep receiving this error:
Template Preview And Generate Error:
XML parse error:
not well-formed at line 68, column 43, byte 2544 at /iw/iw-home/iw-perl/lib/perl5/site_perl/5.005/sun4-solaris/XML/Parser.pm line 185
:/default/main/NewCoIntranet_Dev/WORKAREA/ljn6/templatedata/description/short_description/presentation/short_description.tpl
Find more posts tagged with
Comments
akshathp
One quick thing. Is the opening paranthesis missing in your actual script too or is it just an error in posting here...
my $tableclass=iwpt_dcr_value
(
"shortDescription.shortIntroduction");
And what is shortDescription. Are you missing the
dcr.
before that or is it a variable you have set for list.
Hope this helps!
Akshat Pramod Sharma
Interwoven Inc.
Migrateduser
the left paren is there.. it was just an error in the post.
i have "discovered" a solution to my problem!! if i surround my code within the iw_perl tags with <![CDATA[ ]]> tags.. it works!!
thanks for your help.