https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: 7cc4875243314a2f1a2b867a758f9b9d4ec51fc3 authored by Trammell Hudson on 17 May 2009, 05:34:03 UTC
Clean up warnings and move structures into globals
Tip revision: 7cc4875
string-dump
#!/usr/bin/perl
use warnings;
use strict;

while(<>)
{
	my ($val) = /:\s*([0-9A-Fa-f]+)\s*/ or next;
	$val = hex $val;
	while( $val )
	{
		print chr( $val & 0xFF );
		$val >>= 8;
	}
}

print "\n";
back to top