Help for this page

Select Code to Download


  1. or download this
    my %test_vals;
    @test_vals{ @TEST_FLD } = unpack $TEST_REC_PACK, $rec;
    
  2. or download this
    my @TEST_FLD = ();
    my $TEST_REC_PACK = q{}; 
    ...
       }
       return ($spec,@fld);
    }
    
  3. or download this
    print 'fields    =  (',join(',',@TEST_FLD),")\n";
    print "pack spec =  \"$TEST_REC_PACK\"\n";
    ...
    while (($key,$val)=each(%test_vals)) {
       printf " %6s => %s\n",$key,$val;
    }