Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:

> Do you know that the "printable" range of characters is
> from 32 to 126?

In C, there are a bunch of macros (is_visable, is_num,
is_alpha, etc..).  They were just some interesting bit mask
magic to a table full of OR'd flags.  Cute algorithm,
actually.  Since it used CPP, it didn't incur the overhead
of a function call.

Does Perl bring somethin similar through?  Perhaps the
/[[space]]/ POSIX(?) character classes?  (I'm sure I've got
the syntax wrong.)  There's no reason to hard-code 32..126
into zentara's printing program.  Especially if it's to work
in different locales.

-- 
Michael R. Wolf
    All mammals learn by playing!
       [EMAIL PROTECTED]


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

Reply via email to