in reply to Re^2: module problems
in thread module problems
Here is dog:package my_mod; sub cat{ print "meeow.\n"; } sub daddy{ print "Hi, Dad!!!\n";} 1;
I tried this exact same on a separate box with a (presumably) different Perl interpreter, and it seemed to work just fine. Could it be something weird going on with the cygwin perl interpreter? And speaking of which, is there any way I could obtain Perl (at least an interpeter, compiler) for Windows (without having to use ActiveState Perl, for which I must eventually pay money)? The Perl interpreter that comes with cygwin is, to say the least, a little squirrelly (okay, maybe my code is too, but still...).#!/usr/bin/env perl use my_mod; my_mod::cat(); my_mod::daddy();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: module problems
by wade (Pilgrim) on Apr 03, 2008 at 20:22 UTC | |
|
Re^4: module problems
by wade (Pilgrim) on Apr 03, 2008 at 21:31 UTC |