[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl book..



At 13.41 1998.03.18, nghai wrote:
>Would it had been clearer and less prone to mistakes to do:
>
>  $position = index($input,"\s");

Whoops!  No.  index() does not take a regex.  It takes a string.  This will
not work.

>which unfortunately would include lf, returns and tabs or:
>
>  $position = index($input,"\x20");
>
>which would explicitly specify a space.

Yes, that would work, too.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==               New Book:  MacPerl: Power and Ease               ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch