SPUG: must dumpvar.pl be required BEGIN

Michael R. Wolf MichaelRWolf at att.net
Wed Apr 1 18:09:26 PDT 2009

On Apr 1, 2009, at 7:45 PM, Yitzchak Scott-Thoennes wrote:

> On Wed, April 1, 2009 4:06 pm, Michael R. Wolf wrote:
>> print "These should pass\n";
>> dumpValue \@should_pass;
> There's your problem.  Perl doesn't know at compile time that  
> dumpValue
> is a subroutine rather than the method for an indirect method call.
> If you want to use not-yet-compiled subs as such, use parens around  
> the
> arguments.

Of course.  Thanks....

Michael R. Wolf
     All mammals learn by playing!
         MichaelRWolf at att.net

More information about the spug-list mailing list