Re: Need some module help

2009-07-10 Thread Shawn H. Corey
On Thu, 2009-07-09 at 21:58 -0700, Travis Thornhill wrote: [File: ./uses_Mod.pl] #!/usr/bin/perl use strict; use warnings; use lib 'Mod'; Not needed. When perl searches for a module, it does so by looking in the directories in @INC (See `perldoc perlvar`). The very last item in @INC is

Need some module help

2009-07-09 Thread Travis Thornhill
I'm trying to learn to develop Perl modules in an effort to have clean directory structure and more reusable code. I'm hitting a little snag in my test code that I don't quite understand. I'm hoping someone can help explain where I may be going wrong here. The error I'm receiving is this:

Re: Need some module help

2009-07-09 Thread Chas. Owens
On Fri, Jul 10, 2009 at 00:58, Travis Thornhillmadslashers2...@yahoo.com wrote: snip Can't locate object method new via package myMod (perhaps you forgot to load myMod?) at uses_Mod.pl line 11. snip my $obj = myMod-new(); # - THIS IS THE LINE THAT ERRORS snip package Mod::myMod; snip The

Re: Need some module help

2009-07-09 Thread Jim Gibson
At 9:58 PM -0700 7/9/09, Travis Thornhill wrote: I'm trying to learn to develop Perl modules in an effort to have clean directory structure and more reusable code. I'm hitting a little snag in my test code that I don't quite understand. I'm hoping someone can help explain where I may be going