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();
In reply to Re: Undefined subroutine - newbie problem
by cheekuperl
in thread Undefined subroutine - newbie problem
by blackhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |