Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: require "shared.pl" with use strict;by choroba (Cardinal) |
on Feb 19, 2015 at 17:27 UTC ( [id://1117244]=note: print w/replies, xml ) | Need Help?? |
No, you should use [id://NUMBER] to link to other nodes. See What shortcuts can I use for linking to other information?.
The preferred thing to export from a module is a subroutine. Or, alternatively, you can switch to the object oriented approach. Shared.pm:
test.pl:
Object orientedShared_OO.pm:
test_oo.pl:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|