Re: How do I read a pipe into a one liner?

2017-10-31 Thread ToddAndMargo
On 10/29/2017 11:18 PM, ToddAndMargo wrote: Dear List, I am trying to translate this P5 coder to P6. I am looking at how to read a pipe into a line liner: Follow up: With the help of the guys on the chat line, here is the keeper file I wrote myself: -T How to read a "pipe": .lines

Re: How do I read a pipe into a one liner?

2017-10-30 Thread ToddAndMargo
On 10/29/2017 11:18 PM, ToddAndMargo wrote: Dear List, I am trying to translate this P5 coder to P6. I am looking at how to read a pipe into a line liner: ReadAPipe.pl #!/usr/bin/perl use strict; use warnings; chomp(my $Pipe = ( ! -t \*STDIN ) ? do{local $/; } : q{}); print "This was read

How do I read a pipe into a one liner?

2017-10-30 Thread ToddAndMargo
Dear List, I am trying to translate this P5 coder to P6. I am looking at how to read a pipe into a line liner: ReadAPipe.pl #!/usr/bin/perl use strict; use warnings; chomp(my $Pipe = ( ! -t \*STDIN ) ? do{local $/; } : q{}); print "This was read from the pipe:\n<$Pipe>\n\n"; print "These