Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Can you find the name of a variable?

by afoken (Chancellor)
on Nov 14, 2009 at 10:57 UTC ( [id://807126]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub blah
    {
    ...
    
    blah(foo => 42, bar => "don't forget this", baz => 'oh!');
    blah(foo => 42, baz => 'oh!'); # <-- will die()
    
  2. or download this
    $foo=42;
    print nameThatVariable($foo); # '$foo', of course.
    ...
    print nameThatVariable(do { my $tmp=23 }); # '$tmp'?
    
    print nameThatVariable([ 23,45 ]); # ?
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-24 04:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found