in reply to Re: Problems with passing arguments to a subroutine in a perl package
in thread Problems with passing arguments to a subroutine in a perl package
Its got nothing to do with "subroutines being recognized", you got undef, that is all.
If you want more help post code that reproduces the problem, a Short, Self Contained, Compilable, Example like
#!/usr/bin/perl -- use strict; use warnings; use diagnostics; Main( @ARGV ); exit( 0 ); sub Main { my $fb = Foo::Bar(3); $fb++; print "$fb\n"; } sub Foo::Bar { my( $i , $eeb ) = @_; return $eeb + $i; } __END__
|
---|
In Section
Seekers of Perl Wisdom