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
 [EMAIL PROTECTED]

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
> [EMAIL PROTECTED]
> http://www.linux.org.uk/mailman/listinfo/techtalk
> 



_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk

Reply via email to