package my_mod;
sub cat{
print "meeow.\n";
}
sub daddy{ print "Hi, Dad!!!\n";}
1;
Here is dog:
#!/usr/bin/env perl
use my_mod;
my_mod::cat();
my_mod::daddy();
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...). | [reply] [d/l] [select] |
| [reply] |
I tried it (ActiveState Perl on WindowsXP) -- works for me.
| [reply] |