471,896 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

Perl module question


I wanted to test all the subroutines in my module from a script,
but I have a problem. Some subroutines are called from only
inside the module and some are not. Therefore I have code

1 my ($pkg, @args) = @_
2 my @args = @_

in other places. Unfortunately if i test my sub routine that has #2 above,
I get an error because the package name is passed into the sub and the code
expecting that. Is there a way that a script can call a method in a module
and not
pass the package name?


Jul 19 '05 #1
0 2151

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

52 posts views Thread by Olivier Scalbert | last post: by
31 posts views Thread by surfunbear | last post: by
5 posts views Thread by Barbara Lindsey | last post: by
reply views Thread by Kirt Loki Dankmyer | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.