Displaying 1 result from an estimated 1 matches for "h_crlf".
Did you mean:
b_crlf
2004 Sep 22
2
Grandstream bin cfg.txt generator
...s,
Leon de Rooij
--------------
#!/usr/bin/perl -w
use strict;
my $h_mac = '000b82014e20'; # hexadecimal mac address
my $f_in = 'cfg.in'; # file body, configfile containing all parameters
my $f_out = 'cfg.txt'; # the configfile that will be written to
my $h_crlf = '0d0a'; # hexadecimal crlf
# convert some things to binary
my $b_mac = pack("H12", $h_mac); # convert 12 hex numbers to bin
my $b_crlf = pack("H4", $h_crlf); # convert 4 hex numbers to bin
# open configfile and make body in ascii (a_body)
my $a_body;
open F,...