Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Redirection problem / question

by taint (Chaplain)
on Apr 30, 2015 at 01:28 UTC ( #1125185=note: print w/replies, xml ) Need Help??


in reply to Re: Redirection problem / question
in thread Redirection problem / question

Well. I actually tried an example from another script I created to strip ANSI sequences from (type)script output
binmode STDIN, ":raw:eol(LF)"; while (<STDIN>) { s/\033[^m]*m//g; print $_;
But I found my problem seems to stem from how to implement it -- plug it into what I have working with Net::CIDR. As shown in my OP example.

λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Replies are listed 'Best First'.
Re^3: Redirection problem / question
by Anonymous Monk on Apr 30, 2015 at 01:38 UTC

    Well. I actually tried an example from another script I created to strip ANSI sequences from (type)script output But I found my problem seems to stem from how to implement it -- plug it into what I have working with Net::CIDR. As shown in my OP example.

    What?

    You don't show sample input, and you say there is a problem with the program, <STDIN> doesn't work in some way

    Well, use dd() to dump the data and show the data here on perlmonks

      No. Your pointers were helpful. I'm getting closer. My only (attempted) point was that; while I have some working experience using STDIN. I'm having a hellofatime applying it to what I'm working with now.

      Thanks for the tips!

      They've jogged my thoughts just enough to get me in the correct direction.

      λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

        Be sure to post your solution, if you come up with one, to help the next guy.

        Dum Spiro Spero

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-08-09 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?