469,290 Members | 1,759 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

Perl module question

Hi,

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
like:

1 my ($pkg, @args) = @_
and
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
isnt
expecting that. Is there a way that a script can call a method in a module
and not
pass the package name?

Thanks,

Eddie
Jul 19 '05 #1
0 2132

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.