http://qs1969.pair.com?node_id=1125185


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