Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Scalar Value Not Available To Subroutine

by LanX (Canon)
on Dec 20, 2012 at 16:40 UTC ( #1009758=note: print w/ replies, xml ) Need Help??


in reply to Scalar Value Not Available To Subroutine

sub mail { my ($uid) = @_; # <-- assign argument print "uid in sub=$uid\n"; }

it maybe worked before because you also filescoped a $uid, but after passing it to the routine as argument you should also assign it.

EDIT: At least that may be the reason why strict didn't complain. Anyway in many aspects your code is too weird for me to try it out.

Cheers Rolf


Comment on Re: Scalar Value Not Available To Subroutine
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-03-04 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (99 votes), past polls