Help for this page

Select Code to Download


  1. or download this
       # $RECORDSIZE is the length of a record, in bytes.
       # $TEMPLATE is teh unpack template for the record
    ...
             or die "short read\n";
          @FIELDS = unpack($TEMPLATE, $record);
       }
    
  2. or download this
       #!perl -w
       use strict;
    ...
       foreach (@FIELDS) {
          print "field=[$_]\n";
       }
    
  3. or download this
       C:\DOCUME~1\hmerrill.000\TEST_P~1>test_unpack.pl
       $record = [         none          lt2dpmnt]
    ...
       field=[none]
       field=[          ]
       field=[lt2dpmnt]