i must first say i am cros-posting this email to both the
Template::Toolkit and the Perl-XML lists. simply because i am not sure
of where the problem originates.

hello, all. i am getting an incorrect result with tt2 that i've never
encountered before.

i have been working with this perl script for a month now, but not had
anything like this before. it is not giving any errors from the
terminal, so i don't know what the problem is.

here it is: i have a script that takes xml file from multiple
directories using XML::Simple and then puts the info gathered from
them into a hashref to be used by Template::Toolkit.

the pasring bit to create the page using tt2 has always worked, and
never resulted in something like this. where i should be getting a
mailto: link in the resulting html document, i'm instead getting a
9-digit number. i assume it is something like a undef hash value, or
an incorrect reference to a hash value, or something like that, but i
am using data::dumper to view the hashref containing the info, and the
value is showing up as it should. plus, all other parsings of the
hashref into the template file are coming up fine. it's just these
mailto: values that are coming out wrong.

the only thing i can think of is that the email addresses contained in
the xml file contains a hyphen ('-'), in the following format:
[EMAIL PROTECTED]

now, as i said, it is in the xml file, which is read by xml::simple,
and the data is then put into a hashref, and then is altered to turn
it into html format (<a href="mailto:#######";></a>), and then the
hashref is used in tt2 to make a html file using a template file.

on a related note, i found that the use of '&' in these same xml files
causes an error. is the use of '-' also a problem? anyway to get
around these problems?

-- 
   /\    --- Adam Theo ---
  //\\   Theoretic Solutions (www.Theoretic.com)
 /____\     Software, Politics, and Advocacy
/--||--\ email: [EMAIL PROTECTED]   AIM: Adam Theo 2000
   ||    jabber: [EMAIL PROTECTED]   ICQ: 3617306
   ||  "Did you ever get the feeling the world was a tuxedo,
   ||     and you were a pair of brown shoes?"


Reply via email to