Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 browsing the Monastery: (3)
As of 2014-10-02 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (45 votes), past polls