Gossamer Forum
Home : General : Perl Programming :

sub routine reference question

Quote Reply
sub routine reference question
Is there a way to write this in one statement?

Code:
my $page = \&$do;
return &$page;

Assuming $do to be just a regular string.

- Jonathan
Quote Reply
Re: [jdgamble] sub routine reference question In reply to

Code:
print &{\&$do};