in reply to chr() suprisingly slow

What do you mean, sub mychr was faster? You are confusing yourself by mislabeling your cases. The "mychr" is labelled "builtin", and clocks 6.94 iterations per second, well below the 20.44 from using 'pack' and the 32.06 from using chr.

I would say that chr wins over pack, with the sub coming in well last.

Abigail

Replies are listed 'Best First'.
Re: Re: chr() suprisingly slow
by sirhc (Initiate) on Jul 30, 2002 at 16:09 UTC

    Thanks. I knew something was wrong but however much I looked at I just couldn't see what.

    I feel like a complete melon now. :-)