Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2015-07-30 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls