Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

argument """ isn't numeric in numeric gt(>), error

by veerubiji (Sexton)
on Nov 02, 2011 at 09:35 UTC ( #935327=perlquestion: print w/ replies, xml ) Need Help??
veerubiji has asked for the wisdom of the Perl Monks concerning the following question:

Hi I am running this code but I am getting error how to rectify this error

[% FOREACH st = university %] [%+ st.name +%] [%+ st.location +%] [% FOREACH section = st.branch.electronics.section %] [% IF st.branch.electronics.section >1 %] branch student: [%+ section.name +%] [%+ section.number +%] [% FOREACH sem = section.sem %] [%+ sem.semister +%] [%+ sem.subjects +%] [%+ sem.rank +%] [% END %] [% ELSE %] [%+ section.name +%][%+ section.number +%] [%+ section.sem.semister +%][%+ section.sem.subjects +%] [%+ section.sem.rank +%] [% END %] [% END %] [% END %]

I am getting error like " argument"" isn't numeric in numeric gt(>)at input file handle line 44" this error at IF condition.how to eliminate this.

Comment on argument """ isn't numeric in numeric gt(>), error
Download Code
Re: argument """ isn't numeric in numeric gt(>), error
by Corion (Pope) on Nov 02, 2011 at 09:38 UTC

    You have been around for a long enough time to know that you can do more work to help us help you better.

    Please answer the following questions:

    1. Are you aware that the message is not an error but only a warning? See perllexwarn and perldiag.
    2. What is your input data?
    3. What is line 44?
    4. How does your input data correlate to line 44?
    5. What have you tried to rectify this?
Re: argument """ isn't numeric in numeric gt(>), error
by GrandFather (Cardinal) on Nov 02, 2011 at 09:44 UTC

    Wow! That's really odd. Normally it's line 42.

    True laziness is hard work
Re: argument """ isn't numeric in numeric gt(>), error
by JavaFan (Canon) on Nov 02, 2011 at 09:44 UTC
    That isn't Perl code.
      Indeed, you are an astute observer: it is Template Toolkit code, but it runs under Perl and its errors are Perl errors.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        Just because something is written in perl doesn't mean that perl is responsible for its errors, or that a perl forum is the right place to ask about them. There are dedicated mailing lists for Template Toolkit.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-08-21 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls