package A; sub foo { print "$_[0]\n" } package B; @ISA = qw(A); package main; B->foo(); __END__ $ perl /tmp/p B
Dave.
In reply to Re: Class Inheritance without an instance
by dave_the_m
in thread Class Inheritance without an instance / $AUTOLOAD equ
by dynamo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |