InfiniteSilence has asked for the wisdom of the Perl Monks concerning the following question:
When I try and use this, as follows:BEGIN { use Exporter; my ($VERSION,@ISA, @EXPORT_OK, %EXPORT_TAGS); @ISA = qw(Exporter); %EXPORT_TAGS = (); @EXPORT_OK = qw(&IPGrab); $VERSION = 0.02; } sub IPGrab { print "\nfoo"; }
I get the following error message:#!/usr/bin/perl -w use strict; use hits qw(:IPGrab); &IPGrab();
Undefined subroutine &main::IPGrab ....
Any ideas as to why as to why the function &IPGrab doesn't make it into my namespace?
Celebrate Intellectual Diversity
|
|---|