A use statement is just a fancy include: it loads a perl file, compiles it and runs the code. Perl doesn't know or care that you don't use any methods in that file.
I'd guess that your class_1.pm file is either very large or it contains directly executable code (outside of the method declarations) that takes some time to run.
In reply to Re: including a class makes the perl/cgi script run slower
by Joost
in thread including a class makes the perl/cgi script run slower
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |