in reply to Module suboutine needs dereferencing?

Hi,

Well, you have a couple of options depending on what you want to do:

$subname = 'foo'; # Same as Modname->foo(@params); Modname->$subname(@params); # Same as Modname::foo(@params); "Modname::$subname"->(@params);

PS: one other note, if you can use subreferences ($sub = \ &Modname::foo), that tends to be a little safer. Just make sure that you are not using a variable that came from a user/webform/file without checking it first.

Ted Young

($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)