An associative array is the old name for a hash, which isn't what you're using.

At 10:14 AM 8/14/01 -0700, Eric Wang wrote:
>Hi guys,
>
>Got a quick question.
>If I let @foo = "some string";
>can I access say the "t" in this string by using $foo[6] ?

You've got a scalar which you want to treat as an array.  Put the string in 
a scalar, and use the substr() function (perldoc -f substr).

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to