Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Embedding fuction output

by Odud (Pilgrim)
on Jun 11, 2001 at 18:54 UTC ( #87514=note: print w/replies, xml ) Need Help??


in reply to Embedding fuction output

A different approach: You could do something like
print qq{Caller's Name: $caller \n};

But... I don't know how to put in the subroutine/function name directly. Cleverer people than me will know the way though... Hope this is of use...
Update:
Initially I though this would work but although it does for the variable the function call is untouched.
$foo = "bar"; while(<DATA>) { print eval("\"".$_."\""); } __DATA__ line 1 $foo &localtime() line 3

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://87514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2023-01-29 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?