> 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} );
> 
> ${ref} = CGI->can( 'goober' );
> 
> print Dumper( ${ref} );
> 
> exit( 0 );
> 
> C:\temp>test.pl
> $VAR1 = sub { "DUMMY" };
> $VAR1 = undef;
> 

See Bob's e-mail and the docs for 'can' in Universal, both talk about
Autoloading, which you have just found.  CGI uses autoloading for tag
generation when a method isn't recognized. (At least that is my
understanding of it).

http://danconia.org


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to