http://www.perlmonks.org?node_id=1012969


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;

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.