And called cat in a script known as "dog":package my_mod; sub cat{ print "meeow.\n"; } 1;
However, it is coughing up an error, indicating "undefined subroutine &main::cat". What am I doing wrong?#!/usr/bin/env perl use my_mod; cat();
In reply to module problems by PerlZealot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |