Mercurial > ec-dotfiles
view bin/testcrc @ 413:fda660f86df3
Don't set lc_messages to utf-8. Just use plain C.
Kinda fixes gnu tools in openbsd.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 23 Nov 2012 10:39:38 -0500 |
parents | 5bafb912837e |
children |
line wrap: on
line source
#!/usr/bin/perl use strict; use warnings; use String::CRC32; my @files = @ARGV or print("Usage u fail") && exit(1); foreach(@files) { my $filename = $_; open(FILE,$filename); my $crc=crc32(*FILE); close(FILE); $crc=sprintf("%X",$crc); print("$filename: $crc\n"); }