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
In reply to Re: Re: How called was &I?
by rir
in thread How called was &I?
by rir
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |