in reply to Re: hexdump/od/perl question
in thread hexdump/od/perl question
still has the funky characters on output.my %db; foreach my $file ( @ARGV ) { print "Opening $file" if DEBUG; open ( my $fh, '<', $file ) or die "can not open $file" ; while ( my $line = <$fh> ) { chomp $line; $line =~ tr/\0375//d; next unless $line =~ /(.*?)[.-]*\t(.*)/; my ( $k, $v ) = ( $1, $2 ); $db{$k} = undef; } } print for keys %db;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hexdump/od/perl question
by ikegami (Patriarch) on Aug 10, 2007 at 17:37 UTC | |
by EvanCarroll (Chaplain) on Aug 10, 2007 at 17:52 UTC | |
by ikegami (Patriarch) on Aug 10, 2007 at 18:00 UTC | |
by EvanCarroll (Chaplain) on Aug 10, 2007 at 18:10 UTC |