Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: refine output of Dumper

by choroba (Cardinal)
on Oct 24, 2014 at 10:08 UTC ( [id://1104842]=note: print w/replies, xml ) Need Help??


in reply to refine output of Dumper

To remove newlines, just use chomp:
@SChk_Out = <DChk>; chomp @SChk_Out;

BTW, your cat is useless. You can get rid of it as grep accepts filename as an argument:

my $StatChk = 'grep -v OK /tmp/teststatus.txt';
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-20 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found