Phoenix.pm: Getting a name of a variable.

Bryan Lane Bryan.Lane at VITALPS.COM
Thu Sep 13 16:14:53 CDT 2001


You could do a literal print.   print "var", var;

> -----Original Message-----
> From:	erik.tank at bpxinternet.com [SMTP:erik.tank at bpxinternet.com]
> Sent:	Thursday, September 13, 2001 1:41 PM
> To:	phoenix-pm-list at happyfunball.pm.org
> Subject:	Phoenix.pm: Getting a name of a variable.
> 
> I have a debugging module that I have been working on.  One of the methods
> prints out the contents of a hash that is passed to it.  I think that it
> would be cool to have the name of the hash appear above the output.  Does
> anyone know how to take a variable an get it's name?
> 
> Thanks,
> 
> Erik Tank
> 602-817-4705
> erik.tank at bpxinternet.com



More information about the Phoenix-pm mailing list