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

Re: [MacPerl] Perl book..



|>Would it had been clearer and less prone to mistakes to do:
|>  $position = index($input,"\x20");
|>which would explicitly specify a space.
|Yes, that would work, too.

Except that assumes the ASCII character set. If I were really worried
about someone missing the space, I'd do something like:

$position = index $input, ' ';	# There's one space between the quotes

Of course, this being the MacPerl list, I didn't really say any of
that...

Brian

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