how to print value of variable in perl file.
Hello All, I want to make some change in perl file,so I want to print value of variables passed through template( *.tmpl).I have tried to use print "abce....."; but can not get output. If any body has idea what to do,kindly send me reply. Thanking you in anticipation -- Purohit Chirag
In a .pl perl file, you can do: warn "var1: $var1"; Then view the page in a browser and check the ErrorLog to see the output. -- Joe Atzberger LibLime - Open Source Library Solutions I want to make some change in perl file,so I want to print value of
variables passed through template( *.tmpl).I have tried to use print "abce....."; but can not get output.
In a .pl perl file, you can do: warn "var1: $var1";
Then view the page in a browser and check the ErrorLog to see the output.
...which is great if you're trying to debug something, not so great if you're trying to output new information to the template. Maybe it would be good to tell us what information you're trying to display? Perhaps it's a change that others would benefit from too? -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
participants (3)
-
chirag purohit -
Joe Atzberger -
Owen Leonard