Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use Foo; hello('test');
Thanks for looking!package Foo; use strict; use warnings; use base 'Exporter'; our @EXPORT_OK = qw( hello ); my $hello = hello(); sub hello { my $h = shift; return; } print $hello; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing value to a Perl module
by hippo (Archbishop) on Jan 10, 2018 at 15:59 UTC | |
by Anonymous Monk on Jan 10, 2018 at 16:15 UTC | |
by hippo (Archbishop) on Jan 10, 2018 at 16:21 UTC | |
by stevieb (Canon) on Jan 10, 2018 at 16:22 UTC | |
by Anonymous Monk on Jan 10, 2018 at 16:32 UTC | |
by AnomalousMonk (Archbishop) on Jan 10, 2018 at 17:33 UTC | |
by NetWallah (Canon) on Jan 10, 2018 at 16:53 UTC | |
|
Re: Passing value to a Perl module
by thanos1983 (Parson) on Jan 10, 2018 at 16:07 UTC | |
|
Re: Passing value to a Perl module
by karlgoethebier (Abbot) on Jan 10, 2018 at 17:11 UTC |