in reply to help figuring out what a section of script does
It uses the first three numbers to build a filename. The X'' part at the end is hexadecimal-coded. It decodes that part and writes it to the file. The decode loop of the script would be better written asINSERT INTO FOO VALUES (1,2,3,4,5,X'6789')
But that's as may be.print OUT unpack("H*",$data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help figuring out what a section of script does
by AnomalousMonk (Archbishop) on Mar 19, 2017 at 15:33 UTC | |
by michaelsingleton (Novice) on Mar 19, 2017 at 15:38 UTC | |
by AnomalousMonk (Archbishop) on Mar 19, 2017 at 20:59 UTC | |
by stevieb (Canon) on Mar 19, 2017 at 21:17 UTC |