Reply to Re: Class function "Undefined Property" error
Posted by Colin Fine on 10/24/58 11:35
KornetNews wrote:
> <?
> class Refs {
> function scriptDir() {
> echo "Refs are Here\n";
> }
> }
>
> $ref = new Refs;
> $ref->scriptDir();
>
> ?>
>
>
>
Yes, having worked in Perl for several years, I keep tripping over this
one. You need the parens for a method.