Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: unpack() removing data

by BrowserUk (Pope)
on Jan 11, 2013 at 20:14 UTC ( #1012969=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: unpack() removing data
Download Code
Re^3: unpack() removing data
by shnatko (Initiate) on Jan 11, 2013 at 21:10 UTC
    thank you! this is exactly what I needed. looks to be working correctly now.

    thanks again

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (14)
As of 2015-07-02 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (41 votes), past polls