$path = "/templatedata/category/data-type/data/filename"; print "\npath: [$path]"; $path =~ s/^\///; print "\nrelative path: [$path]";
<iw_perl><![CDATA[## Some perl code....]]></iw_perl>
In reply to:...the template doesn't like it ...
<iw_pt name="...">...</iw_pt>
<iw_pt name="..."/>
<iw_perl><![CDATA[...]]></iw_perl>
<iw_perl>...</iw_perl>
/
$foo =~ s/\/some\/path\//\/another\/path\//;
$foo =~ s|/some/path/|/another/path/|; $foo =~ s+/some/path/+/another/path/+; $foo =~ s!/some/path/!/another/path/!; $foo =~ s{/some/path/}{/another/path/};