On Sun, May 27, 2001 at 10:12:45PM +0900, Stefan Matthias Aust wrote:
> >Want to check the first or last character of a string or say any character
> >of a string. Do I really have to write s[0..0] to *not* get a number but to
> >get a *character*? Or even worse: Must I expand String and Array somehow for
> >that?
> 
> I think, you could write either use the "?" syntax to refer to
> characters as in
> 
>  s[0] == ?A    
>  s[-1] == ?Z
> 
> or use a regular expression
> 
>  s =~ /^A/ 
>  s =~ /Z$/
Why is it like that anyway?? Wouldn't it be more useful to have array[i] return
the char instead of the number??

Sincerly,
Chris Moline