[ic] IC tag in UserTag

Ed LaFrance edl at newmediaems.com
Fri Oct 3 17:03:58 EDT 2003


At 03:28 PM 10/3/2003 -0700, you wrote:
>I need to include the time tag in a block of XML in a UserTag.  How can I
>write this in Perl inside a UserTag:
>
><LastModifiedTime>[time gmt="1" adjust="-1"]%Y-%m-%d
>%H:%M:%S[/time]</LastModifiedTime>
>
>- Grant

I assume you just want the result of the evaluation, in which case you 
would do:

my $xml = <<EOXML;
... # stuff before
<LastModifiedTime>
         $Tag->time( { gmt => '1', adjust => '-1' } '%Y-%m-%d %H:%M:%S' )
</LastModifiedTime>
... # stuff after
EOXML

- Ed



===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list