in reply to Perl Modules
pls don't tell me to get a dang book. none of that stuff is at all helpful.
Try Ulysses - I think you'd enjoy it. (Edit: the parent post has subsequently been amended to introduce some formatting thus making this reference rather more obscure)
so i put "use pm::security;" at the top of my "user.pm" file. all's good so far, i think. building on my setup, i eventually come across things like "subroutine banned(...) is not defined". I'm like thinking how can that be. I STARE at my code and just can't figure out how "use pm::security;" in my "user.pm" module can say that "banned($$)" is not defined, when it's right here in the security.pm file! makes NO SENSE!
See Exporter or just call the sub via the full name eg: pm::security::banned ($foo, $bar)
Other things to read: perlmod and package. Also Coping with scoping.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Modules
by jamroll (Beadle) on Jun 20, 2017 at 17:43 UTC | |
by hippo (Archbishop) on Jun 20, 2017 at 22:16 UTC | |
by jamroll (Beadle) on Jun 27, 2017 at 22:10 UTC |