Re: Unpack - getting values directly into the correct variables

Do you have a question? Post it now! No Registration Necessary.  Now with pictures! wrote:
Quoted text here. Click to load it

You can assign directly to a list of variables:

my ( $RecordType,
# ....
    ) = unpack( $BaseBSPFileTemplate, $_ );


-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.

Site Timeline