in reply to Re: Re: How to eliminate text portion of a binary file?
in thread How to eliminate text portion of a binary file?
use strict; use warnings; open(my $fh, "/path/to/file") or die $!; while(<$fh>) { last if $_ eq "#### end_ascii_header\n"; } #$fh is now positioned at the beginning of the binary data; do what yo +u will
thor
|
|---|