Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subroutine references in modules

Status
Not open for further replies.

mooniron

Programmer
Dec 15, 2002
26
TR
Hi all.
I am trying to get a reference to a subroutine in a module. But I can't. I am trying something like this:

$my_var = \$my_module->sub_in_module;
this assigns a scalar value in $my_var not a code reference. Could you help me what to do?
Thanks
 
can your subroutine return the value your looking for?
--Paul
 
Yes it returns. But I just want to take the reference of that sub routine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top