develooper Front page | perl.perl5.porters | Postings from October 1999

Re: [PATCH 5.005_62] First round of unpack

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
October 27, 1999 12:24
Subject:
Re: [PATCH 5.005_62] First round of unpack
Message ID:
19991027152418.A29245@monk.mps.ohio-state.edu
On Wed, Oct 27, 1999 at 03:14:35PM -0400, Joshua N Pritikin wrote:

> > d) You react as if packed strings are manually created and designed
> >    for human consumption.  All that programmer are going to do is
> > 
> >        $packed = pack 't', \%data;
> >        system 'foo', $packed;
> > 
> >        $data = unpack 't', shift;
> 
> Ilya, if this is where you are leading then why not advocate including
> Storable in the main tarball instead?

Storable might be good for some things.  FreezeThaw might be good for
some things.  Data::Dumper might be good for some things.

But 't' unpack template is in some sense less powerful, in some sense
more.  It cannot (itself) handle duplicate entries and/or circular
things (though one can easily extend it by appropriate ')'-extension
subroutines).  But it is much more embeddable since you can combine
't' with other pack TEMPLATE stuff.

Ilya

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About