in reply to Unpack()ing a stream

I'd put it in Parse::UnpackStream. I'm not sure that the Parse:: namespace is the best place, but I don't know of any better place for it. It certainly shouldn't be in the root namespace.

Replies are listed 'Best First'.
Re: Re: Unpack()ing a stream
by Stevie-O (Friar) on May 24, 2004 at 14:40 UTC
    Yeah, I know about the root namespace thing. All of my modules are in the root namespace while I write them, because then I don't need to concern myself with directories. If they work out and I decide they're CPAN-worthy, I then use h2xs to construct the final module directory and transplant the code.
    --Stevie-O
    $"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc