>At 07.17 1998.03.14, Amitava Basu wrote: >>$position = index($input,''); > ^^ >As Dick said, that should be a space, not a null. > >>please type something: Chris, that was a nice book you wrote. Thanks > >>The first word "Chris" did not show up. Can you be of some help >>and correct my mistake. > >The other mistake is that it should be Vicki and Chris. :-) Would it had been clearer and less prone to mistakes to do: $position = index($input,"\s"); which unfortunately would include lf, returns and tabs or: $position = index($input,"\x20"); which would explicitly specify a space. - nghai _________________________________________________________________________ Hai Ng "Virtual Tools for the Real World" Digital Image Design Incorporated 72 Spring Street Sixth Floor New York NY 10012 Phone: 1-212-343-2442 ext 226 Fax : 1-212-343-0440 Email: nghai@didi.com WWW : http://www.didi.com Coordinates: 40deg 43' 20.0" North 73deg 59' 52.4" West Altitude : 176 ft ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch