[techtalk] Debugger help needed
Alex Yan
flare at serv.net
Mon Jul 17 15:28:16 EST 2000
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 the first element of @ARRAY. Is that what you want?
-Alex Yan
flare at serv.net
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
>
>
>
>
>
> _______________________________________________
> techtalk mailing list
> techtalk at linuxchix.org
> http://www.linux.org.uk/mailman/listinfo/techtalk
>
More information about the Techtalk
mailing list