in reply to re-opening DATA, printing any character
$startOfData= tell DATA; while( <DATA> ) { ProcessData( $_ ); } seek( DATA, $startOfData, 0 ) or die "Can't seek: $!"; while( <DATA> ) { ReprocessedCheese( $_ ); }
There are lots of variations here. But my favorite way is just to use the x command in the Perl debugger. </nl>( $text= $binary ) =~ s#([^ -~])# sprintf "\\x%02.2x",unpack("C",$1) #ge; print "$text\n";
|
|---|