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

Re: Nervously....How do I access the Name of a Perl variable?

by wog (Curate)
on Jun 11, 2002 at 01:35 UTC ( [id://173363]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub trace {
      my($package, $filename, $line) = caller;
      # ...
    }
    
  2. or download this
    package TraceMacro;
    
    ...
        print STDERR "$file ($line): $names[$i]:'$values[$i]'";
      }
    }
    
  3. or download this
    use TraceMacro;
    
    # ...
    TRACE( $foo, $bar );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-13 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found