in reply to Re: Re: Bit Ops Galore
in thread Bit Ops Galore

There appear to be high-bit (not ASCII) characters pasted directly into the HTML. The odds of that being correctly cut and pasted to someone's box are next to nil.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: Bit Ops Galore
by Sherlock (Deacon) on Apr 17, 2001 at 18:25 UTC
    Considering the high value ASCII characters, try replacing the definition of $master with this definition:

    $master = [[156,128,64,247,239,106,36], [53,95,111,117,102,241,148], [122,87,81,154,152,55,79], [175,106,92,125,105,171,131],4,7];
    This way, you shouldn't have to worry about copying and pasting high value ASCII, as I've put the decimal ASCII values into the definition. If that still gives you problems, let me know.

    -Sherlock
Re: Re: Re: Re: Bit Ops Galore
by Sherlock (Deacon) on Apr 17, 2001 at 18:31 UTC
    Sorry - I almost forgot. If you change the definition of $master to the one above, you'll need to change the print statement to:

    print chr($master->[$j][0]);


    That will return the ASCII characters, rather than the integer values. Sorry about that.

    -Sherlock