I was just getting ready to ask a question similar to this. I want to use [% PERL %] in library items, not templates, but I've had trouble returning the value back to my template.
templates/index.html -------------------- [% uid = PROCESS getuid %] TEST: uid = '[% uid %]'<br> [% IF uid == 0 %] Zero [% ELSE %] Not zero [% END %] /lib/getuid ------------ [% PERL %] # perl code here print $uid [% END %] I'm not getting what I expected, so I added the test line. If I hardcode $uid = 0 in getuid, I see this in my browser after the template is processed: TEST: uid = '0 ' Not zero I'm getting uid = '0 ', not '0'. What have I missed, and is this the best way to return a value back from my library item (I'm trying to return a value from a component like you can do with Mason)? I looked through the docs, but I didn't see this. Thanks. __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
