Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Embedding fuction output

by Odud (Pilgrim)
on Jun 11, 2001 at 18:54 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found