I am using Doxygen 1.8.1.1 on Wondows 7 Pro.and Perl 12.2 I am trying to wite a custom report generator using the genreated DoxyDocs.pm
Even using doxylatex.pl as an example, I had to add: package DoxyDocs; at the begining of DoxyDocs.pm, then refer to $doxydocs as $DoxyDocs::doxydocs to be able to access that variable. Is there some reason to not have a package statement at the begining of Doxydocs.pm? My code before adding the package declaration: #! perl -w use DoxyDocs; use strict; for my $f (@{$doxydocs->{files}}) { print $f->{name} . ":\n"; for my $v (@{$f->{variables}{members}}) { print $v->{type} . " ". $v->{name} . "; // ". $v->{brief}{doc}[0]{content} . "\n"; } } which gave a "Global symbol "$doxydocs" requires explicit package name" error. After adding the package declaration to DoxyDocs.pm and fully qualifying the variable, the error was gone and my code worked as expected. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users