Re: Determine if sub exists in module

2004-07-08 Thread Wiggins d Anconia
> On Thu, 8 Jul 2004 08:51:08 -0600, Wiggins d Anconia wrote > > > > perldoc UNIVERSAL specifically the 'can' function. > > That's the one. But who's it calling "DUMMY"? That's not my code... > > C:\temp>type test.pl > use CGI; > use Data::Dumper; > > my ${ref} = CGI->can( 'param' ); > > pri

RE: Determine if sub exists in module

2004-07-08 Thread Bob Showalter
perl.org wrote: > I can probably figure this out if I spend some time but as I was > going through it more questions were raised. > > Is it possible for a Perl script to check if a subroutine exists in a > module without actually invoking that subroutine? Not really, because of autoloading. See p

Re: Determine if sub exists in module

2004-07-08 Thread perl.org
On Thu, 8 Jul 2004 08:51:08 -0600, Wiggins d Anconia wrote > > perldoc UNIVERSAL specifically the 'can' function. That's the one. But who's it calling "DUMMY"? That's not my code... C:\temp>type test.pl use CGI; use Data::Dumper; my ${ref} = CGI->can( 'param' ); print Dumper( ${ref} ); ${re

Re: Determine if sub exists in module

2004-07-08 Thread perl.org
On Thu, 8 Jul 2004 08:51:08 -0600, Wiggins d Anconia wrote > > All of this seems a little fishy, what is > the overall goal and why do you need to pass sub names to a separate > script? I am assembling the command line under the Interwoven CMS workflow engine, which is basically Perl. Each auto

Re: Determine if sub exists in module

2004-07-08 Thread Wiggins d Anconia
> I can probably figure this out if I spend some time but as I was going through > it more questions were raised. > Some time, or some more time. Some time is usually expected > Is it possible for a Perl script to check if a subroutine exists in a module > without actually invoking that sub