in reply to Re: How called was &I?
in thread How called was &I?
The first two act just like the last one."Classname"->method( $arg); method "Classname" $arg; method( "Classname", $arg);
Not so. Consider:
#!/usr/bin/perl -w use strict; package Base; sub base { print "Base::base called\n"; } package Derived; use vars qw( @ISA); @ISA = ( "Base"); package main; Derived::base Derived "hello"; Derived::base( Derived,"hello"); # undefined Derived::base "Derived" "hello"; # syntax error
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: How called was &I?
by sauoq (Abbot) on Sep 16, 2002 at 02:22 UTC |