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

Re: Can you find the name of a variable?

by afoken (Prior)
on Nov 14, 2009 at 10:57 UTC ( #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
Node Status?
node history
Node Type: note [id://807126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2015-07-29 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls