Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

error in template toolkit process.

by veerubiji (Sexton)
on Oct 31, 2011 at 14:14 UTC ( #934886=perlquestion: print w/ replies, xml ) Need Help??
veerubiji has asked for the wisdom of the Perl Monks concerning the following question:

hi, I tried to get data from my hash using template toolkit but i am getting error like this

[% FOREACH st = university %] [% st.name %] [% st.location %] [% FOREACH section = st.branch.electronics.section %] branch student: [% section.name %] [% section.number %] [% section.semister %] [% section.subjects %] [% section.rank %] [% END %] [% END %]

I am getting error like this "Template process failed : File error -parser error input file handle line 51: Unexpected token(END) %END%" like this but I used correct syntax and every thing, can you tel how to overcome this error

Comment on error in template toolkit process.
Download Code
Re: error in template toolkit process.
by Anonymous Monk on Oct 31, 2011 at 14:24 UTC

    but I used correct syntax and every thing, can you tel how to overcome this error

    Remove the extra [% END %] from your template

    Also, you're supposed to short code that produces, not something unrelated.

    How do I post a question effectively?

      The original posting , before it was updated

      hi, I tried to get data from my hash using template toolkit but i am getting error like this

      [% FOREACH st = university %] [% st.name %] [% st.location %] [% FOREACH section = st.branch.electronics.section %] branch student: [% section.name %] [% section.number %] [% section.semister %] [% section.subjects %] [% section.rank %] [% END %] [% END %]

      I am getting error like this "Template process failed : File error -parser error input file handle line 51: Unexpected token(END) %END%" like this but I used correct syntax and every thing, can you tel how to overcome this error

      How do I change/delete my post?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://934886]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-04-16 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls