in reply to Problem calling a function with name stored into scalar
Try:
sub fred{ print 'this is fred:' . "@_" ; };; $f = 'fred';; &{ $f }( 1,2,3 );; this is fred:1 2 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem calling a function with name stored into scalar
by tj_thompson (Monk) on Jun 10, 2011 at 22:56 UTC |