bobbybobbertson
Programmer
Can someone tell me how I would call a function from within quotes? Is this possible?
I have the function:
sub special_function(){
print "special stuff";
}
And would like to call it by from within quotes like this:
print "normal stuff ${main::special_function()} more normal stuff";
I know this seems strange, but I really have a very good reason for wanting to do this. Is it possible? What I have written doesn't work, but hopefully you get the idea of what I want to do.
I have the function:
sub special_function(){
print "special stuff";
}
And would like to call it by from within quotes like this:
print "normal stuff ${main::special_function()} more normal stuff";
I know this seems strange, but I really have a very good reason for wanting to do this. Is it possible? What I have written doesn't work, but hopefully you get the idea of what I want to do.