Syntactic Confectionery Delight | |
PerlMonks |
Error msg "requires explicit package name"by Theo (Priest) |
on Jun 16, 2003 at 22:59 UTC ( [id://266329]=perlquestion: print w/replies, xml ) | Need Help?? |
Theo has asked for the wisdom of the Perl Monks concerning the following question:
This should be easy (for most Monks). This one of my first attempts at modifying someone else's code. The code creates a hyperlinked list of images and thumbnails in one long column. I'm trying to use a table sturcture to present the list in two columns. The var $counter is to distinguish between odd and even columns so I can properly open & close the table rows. The first line returns the error message: Global symbol "$counter" requires explicit package name at TnImg.pl line 16. It gives the same message if the var is preceeded by 'my'. Can some kind soul point me towards the solution?
This is my first perl question, so I may have left out something important.
Back to
Seekers of Perl Wisdom
|
|