in reply to Undefined subroutine - newbie problem
and this is code that uses this package:package Abc; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(simple); sub simple { print "\nThis is package Abc and function is simple() \n"; } 1;
use Abc; simple();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Undefined subroutine - newbie problem
by blackhat (Novice) on Aug 14, 2012 at 11:37 UTC | |
by cheekuperl (Monk) on Aug 14, 2012 at 12:01 UTC | |
by blackhat (Novice) on Aug 14, 2012 at 12:07 UTC | |
by Anonymous Monk on Aug 15, 2012 at 02:26 UTC |