in reply to Re: unpack() removing data
in thread unpack() removing data
Instead of using qx//, use a piped open whereby you can binmode the handle before importing the data:
open PIPE, '-|', 'sg_logs --page=0x34,1 pd1 -H -r' or die $!; binmode PIPE; my $data = do{ local $/; <PIPE> }; close PIPE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: unpack() removing data
by shnatko (Initiate) on Jan 11, 2013 at 21:10 UTC |