[techtalk] Debugger help needed
Dan Nguyen
nguyend7 at cse.msu.edu
Mon Jul 17 18:36:54 EST 2000
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;
nguyend7 at msu.edu | everyone talks of it, but few have seen it.
dnn at debian.org | -Maxime De La Rochefoucauld
More information about the Techtalk
mailing list