in reply to Re: Nested subs - inherently evil?
in thread Nested subs - inherently evil?

I'd use $/ instead of read() so that I didn't have to use a temporary buffer.
local $/ = \$num; return unpack "C*", scalar <$fh>;

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who could use a job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;