print "howdy ${\(&dude)}\n";
sub dude { "doody" }
Pity it needs the parens. If you're willing to make the subroutine an
accessory to the crime, you can say:
print "howdy ${&dude}\n";
sub dude { \"doody" }
Hmm, we can move the initial paren over and dump the &.
print "howdy ${\dude()}\n";
sub dude { "doody" }
Or if we predeclare the subroutine, we can get the parens out.
sub dude;
print "howdy ${\dude}\n";
sub dude { "doody" }
And then there's the corresponding list interpolation:
print "howdy @{[&dude]}\n";
sub dude { "doody", "time" }
I think I like it.
Larry