Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can you find the name of a variable?

by afoken (Parson)
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 rifling through the Monastery: (6)
As of 2014-09-21 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (171 votes), past polls