On Tue, Sep 17, 2002 at 05:06:31PM -0400, Chas Owens wrote:
> Nope, you are looking at an indirect method call (OO Perl stuff). The
> actual call is
>
> FH->print($arg1, $arg2);
While it's tempting to say this, because the syntax looks identical, it's
not the case. Try substituting a different object where the file object
goes:
my $foo = bless({}, "Foo");
print $foo "test\n";
You'll get an error:
Not a GLOB reference at ...
The print syntax is just a special case.
> But Perl lets you write it as
>
> print FH($arg1, $arg2);
While this is true for an indirect method call, in this case you just called
the FH() function, then printed the return value.
> or more simply
>
> print FH $arg1, $arg2;
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]