Hi,
I'm trying to get my ascii, hex, and decimal
values straight.
I wanted to print out all values from 0 - 256.
It works , but I'm getting unexplained (as of yet)
"corruption" in the alignment of the printout
in the ranges decimal 5-16, and 126-180.
I can still make sense of the output, but it
On Dec 14, zentara said:
>It works , but I'm getting unexplained (as of yet)
>"corruption" in the alignment of the printout
>in the ranges decimal 5-16, and 126-180.
Do you know that the "printable" range of characters is from 32 to 126?
Specifically...
character 8 is backspace
character 9
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,
act
On Dec 15, Michael R. Wolf said:
>Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
>
>> Do you know that the "printable" range of characters is
>> from 32 to 126?
>
>Does Perl bring somethin similar through? Perhaps the
>/[[space]]/ POSIX(?) character classes? (I'm sure I've got
>the syntax wron
On Sat, 15 Dec 2001 09:56:25 -0500 (EST), [EMAIL PROTECTED] (Jeff
'Japhy' Pinyan) wrote:
>On Dec 14, zentara said:
>
>>It works , but I'm getting unexplained (as of yet)
>>"corruption" in the alignment of the printout
>>in the ranges decimal 5-16, and 126-180.
>
>Do you know that the "printable"
>On Sat, 15 Dec 2001 09:56:25 -0500 (EST), [EMAIL PROTECTED] (Jeff
>'Japhy' Pinyan) wrote:
>>Do you know that the "printable" range of characters is from 32 to 126?
>>
>>Specifically...
>>
>> character 8 is backspace
>> character 9 is tab
>> character 10 is newline
>> character 13 is carriage
On Dec 15, zentara said:
>use Time::HiRes qw (time alarm sleep);
>sleep(.05);
You could have just used 4-arg select() instead... ;)
select(undef, undef, undef, .05);
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonk
Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
> Note: they are used INSIDE a character class: /[[:digit:]]/.
OK -- thanks. I'd seen that before, but thought it was a
different syntax [[]]. It's still the character class
syntax [], but with something "weird" in it [:digit:].
Makes sense now.
On Sat, Dec 15, 2001 at 03:14:25PM -0500, Michael R. Wolf wrote:
> 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 overhe