ascii,hex,decimal printout problem

2001-12-15 Thread zentara
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

Re: ascii,hex,decimal printout problem

2001-12-15 Thread Jeff 'japhy' Pinyan
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

Re: ascii,hex,decimal printout problem

2001-12-15 Thread Michael R. Wolf
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

Re: ascii,hex,decimal printout problem

2001-12-15 Thread Jeff 'japhy' Pinyan
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

Re: ascii,hex,decimal printout problem

2001-12-16 Thread zentara
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"

Re: ascii,hex,decimal printout problem

2001-12-16 Thread zentara
>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

Re: ascii,hex,decimal printout problem

2001-12-16 Thread Jeff 'japhy' Pinyan
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

Re: ascii,hex,decimal printout problem

2001-12-16 Thread Michael R. Wolf
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.

Re: ascii,hex,decimal printout problem

2001-12-18 Thread Michael Fowler
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