What debugger are you using?
Beverly
On Mon, 17 Jul 2000, Lynn Kuhlman wrote:
> How do you print out the contents of an array in the debugger? I tried p
> array name, p @array name, p array name[0].
>
> Can you assign this statement?
>
> @ARRAY = $string
>
> Thanks,
> Lynn
>
>
>
>
>
>
On Mon, Jul 17, 2000 at 03:18:24PM -0700, Lynn Kuhlman wrote:
> How do you print out the contents of an array in the debugger? I tried p
> array name, p @array name, p array name[0].
>
> Can you assign this statement?
>
> @ARRAY = $string
Do you mean, you want the elements in the array to be t
I'm assuming you're talking about Perl, since you're using perl-ish
variables.
You can do this:
x join(", ", @array);
to print the array, joined by commas, or
x @array
to get each element on a separate line.
As for your second question... you can, but all it does is it puts $string
as t