Help for this page

Select Code to Download


  1. or download this
    binmode(S);
    @Data=("asd");
    $binary=pack("C/A*",@Data);        # its working fine
    print S $binary;
    
  2. or download this
    use Convert::Binary:C;
    
    ...
    $data = {type => 3,*ver => "asd",};    # it gives error
    $binary = $c->pack('R', $data);
    print S $binary;