August 4th, 2003, 04:28 PM
Global symbol "@dhtmlcentral" requires explicit package name
I want to create a dynamic page with perl.
since my html is quite complicated.
I use this structure
parse the get method
deal with the dynamic part
I keep getting the compling erreor.
Global symbol "@dhtmlcentral" requires explicit package name at shownews.cgi line 69.
August 4th, 2003, 04:37 PM
Sigh. You don't even post the part of the code that the error refers to? Post the whole file.
August 4th, 2003, 07:12 PM
Before Hero sees this, I'd start looking at CGI.pm, and also some HTML::Template if the html is complex
August 4th, 2003, 07:39 PM
<muttering>The header isn't RFC compliant- there isn't a space after the ":" and there should be. . .</muttering>
Do you see why I harp on this stuff? You see it ALL the time!
August 4th, 2003, 07:41 PM
OT It's been a real education, and well worthwhile
August 5th, 2003, 08:24 AM
Thanks all replies.
I am a newbird of perl.
I forget to mention , I use " USE strict "
under the #!/usr/bin/perl.
When I delete the use strict, everything is going well.
August 5th, 2003, 10:17 AM
@dhtmlcentral is an array that hasn't been declared.
Perhaps you could attach your script, and I'll see if I can check it out
August 5th, 2003, 10:51 AM
August 5th, 2003, 11:02 AM
August 5th, 2003, 11:12 AM
Thank you AXweildr a lot.
I understand right now.
@dhtmlcentral.com will be considered a valid variable in perl.
Since I use strict, perl required me to declare the @dhtmlcentral.com variable.
Thanks a lot.
August 6th, 2003, 04:26 PM
The best part is that the original error you posted told you EXACTLY where to look in the file to find the problem.
August 6th, 2003, 04:31 PM
How can that be the best part, when line 69 wasn't posted at that time??
August 7th, 2003, 11:10 AM
I'm saying - he didn't even open the farking file to see what the problem was. Methinks he shouldn't trust himself to code a print command