deadpickle has asked for the wisdom of the Perl Monks concerning the following question:
but this is just a simple converter. The thing I cant seem to figure is how to read the last line of 56 bytes. I'm going to guess that this would be easy but I could use some help. Thanks as usual.use strict; use warnings; $/ = "\n"; my $file = 'NewLogFile0.gpl'; open(FILE,$file); while( read(FILE,my $out, 56, 0){ unpack("L2d5L2",$out); print $out; } close FILE; exit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a GPL file: Looping a Byte read
by pc88mxer (Vicar) on May 11, 2008 at 17:48 UTC | |
|
Re: Reading a GPL file: Looping a Byte read
by ikegami (Patriarch) on May 11, 2008 at 18:19 UTC | |
|
Re: Reading a GPL file: Looping a Byte read
by starbolin (Hermit) on May 11, 2008 at 21:53 UTC |