Menu

using undefined variables

Help
Dan Pepin
2000-08-11
2003-01-16
  • Dan Pepin

    Dan Pepin - 2000-08-11

    I'm building a list of template variable names and values from a data file and am trying to fill $template->param() with the keys and values.  I get the error "Attempt to set nonexistent parameter 'REFERENCEKEY' - this parameter name doesn't match any declarations in the template
    file : (die_on_bad_params => 1)".

    I want to build all the keys-values prior to looping through a series of seperate templates.  How do I shut off this validation?

     
    • Henri-Damien LAURENT

      my $template =template->new(die_on_bad_params => 0)
      I think this should work.
      Have great time.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.