Try this:
package Dog { use strict; use warnings; use Exporter qw( import ); our $VERSION = 1.00; our @EXPORT_OK = qw( dog ); sub dog { shift } 1; }
#!/usr/bin/env perl use strict; use warnings; use feature qw (say); use Dog qw(dog); say dog ("barf!"); __END__
OK, the naming is perhaps a bit unlucky - but it should work.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re: perl modules
by karlgoethebier
in thread perl modules
by codestroman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |