Stupid mistakes, vol 1

Peter Scott peter at PSDT.com
Mon Feb 3 19:03:58 CST 2003


Don't do

	use base qw(Exporter);
	our @EXPORT = qw(some_func);

	sub some_func { }

and then spend ages scratching your head as to why some_func is not 
exported to the caller only to discover that elsewhere in the same 
module you had earlier inserted your own import().

Doh!
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/




More information about the Victoria-pm mailing list