in reply to Re^4: Passing value to a Perl module
in thread Passing value to a Perl module

This works:
Foo.pm:
package Foo; use strict; use warnings; use base 'Exporter'; our $hello = \&hellosub; our @EXPORT_OK = ( '$hello'); sub hellosub { my $h = shift; return $h; } print $hello->("Foo Mod init"),"\n"; 1;
test caller code:
use strict; use warnings; BEGIN { push ( @INC,"."); } use Foo ('$hello'); print $hello->('test'),"\n";

                Is a computer language with goto's totally Wirth-less?