Definitely check out Data::Dumper; -----Original Message----- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 9:55 PM To: Tim Johnson Cc: [EMAIL PROTECTED] Subject: RE: Is there a way to print out the contents of a variable in hum an readable format?
> Could you give an example of what you mean? I don't use PHP, but I > can think of about three functions that MIGHT be what you're looking > for. Well for instance print_r does the following: @array = (1,2,3,4); print_r(@array); produces: ARRAY ( [0] = 1, [1] = 2, [2] = 3, [3] = 4 ) While: %hash = ('path' => 'name', 'foo' => 'bar'); print_r(%hash); Produces: HASH ( 'path' => 'name', 'foo' => 'bar' ); And print_ring a scalar produces: 0 (or whatever) And doing the same to a resource or filehandle produces something like: RESOURCE #1 Thanks in advance, -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]