Hello jamroll,
Your description is very open, you are saying that you have all these modules that you are trying to call. Did you implement all these modules yours self? Do you have a main script eg. main.pl that calls the modules in the directory?
For example pseudo code main.pl
#!usr/bin/perl use strict; use warnings; use pm::security; print banned(...); # This is how you are calling the method and you ar +e getting the error?
How you export your methods? Have you read Simple Module Tutorial
We need to see at least one module and how you have define it, how you are calling it and see why you are not able to access your methods.
Provide us all these data with well formatted output and we will be more that happy to provide assistance.
Update: Sample of your module to get you started:
Perl module (Security.pm) inside your directory Pm. Path to the module is (local dir of main.pl module Pm/Security.pm)
package Pm::Security; use strict; use warnings; use Exporter; use vars qw($VERSION @ISA @EXPORT_OK); $VERSION = 1.00; @ISA = qw(Exporter); @EXPORT_OK = qw(banned); sub banned { return reverse @_ } 1;
Main module (main.pl)
#!usr/bin/perl use say; use strict; use warnings; use Pm::Security qw( banned ); # use Benchmark qw(:all) ; # WindowsOSn # use Benchmark::Forking qw( timethese cmpthese ); my @list = qw (First ~ Second); say banned( @list ); __END__ $ perl main.pl Second~First
Hope this helps, BR
In reply to Re: Perl Modules
by thanos1983
in thread Perl Modules
by jamroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |