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 the characters
in the string?  If so:

@array = split '', $string;

Otherweise

$array[0] = $string;

will assign the first element of @array to $string

 

-- 
     Dan Nguyen     |  It is with true love as it is with ghosts;
  [EMAIL PROTECTED]  |  everyone talks of it, but few have seen it.
   [EMAIL PROTECTED]   |                 -Maxime De La Rochefoucauld


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

Reply via email to