Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Problems with passing arguments to a subroutine in a perl package

by Anonymous Monk
on Jul 17, 2013 at 03:57 UTC ( #1044705=note: print w/replies, xml ) Need Help??


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__
  • Comment on Re^2: Problems with passing arguments to a subroutine in a perl package
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1044705]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2017-09-23 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (270 votes). Check out past polls.

    Notices?