On Mon, May 20, 2002 at 06:06:13AM -0000, Langa Kentane wrote: > Would something like this work? Is there a way to get it working? > > print (&test); > > sub test > { > return "This is a test"; > } > > I have tried this and this specific code does not work.
Really? Seems to work fine for me. You'll have to be more explicit. In what way does it not work for you. > I am sure you get > the idea of what I am trying to do, how can I do it, is it recommended? All I would do differently is change the print line: print test(); But that's just style. I've rarely used & in my Perl programs since Perl 5 came out. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]