Re: about open with pipe '-|', '|-'

2014-05-09 Thread Rob Dixon
On 10/05/2014 03:48, Uri Guttman wrote: On 05/09/2014 04:58 PM, Shawn H Corey wrote: On Fri, 09 May 2014 16:41:02 -0400 Harry Putnam wrote: As soon as I think I've got it right by thinking: ok, left side is into the command right side is out. If I start pondering over that ... it b

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Uri Guttman
On 05/09/2014 04:58 PM, Shawn H Corey wrote: On Fri, 09 May 2014 16:41:02 -0400 Harry Putnam wrote: As soon as I think I've got it right by thinking: ok, left side is into the command right side is out. If I start pondering over that ... it begins to seem it is the other way. Gack.

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Rob Dixon
On 09/05/2014 21:41, Harry Putnam wrote: I guess I need a mnemonic device to trick myself into remembering which way the pipe with dash symbol goes. And I suppose I should apologize for the cry baby rant in advance: Even now I'm flopping around trying to remember... I've written scripts

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Rob Dixon
On 09/05/2014 21:58, Shawn H Corey wrote: On Fri, 09 May 2014 16:41:02 -0400 Harry Putnam wrote: Agreed. I wished they used something like: ">|" and "<|" Hey Shawn You should raise a bug using `perlbug` on the command line. I amd sure it would be considered carefully and you would get a reas

Something completely different

2014-05-09 Thread Cy Kurtz
Here's a bit of code you might want to bat around a bit. This is a perl script to accept a script from the user and check all permutations of that script to see how many words, if any, can be made from the letters supplied. Slice away: #!/usr/bin/perl use List::Util qw(shuffle); use Math::BigInt

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Harry Putnam
Kenneth Wolcott writes: > On Fri, May 9, 2014 at 1:41 PM, Harry Putnam wrote: >> I guess I need a mnemonic device to trick myself into remembering >> which way the pipe with dash symbol goes. > > Think of it as "producer" and "consumer". You could use your file > handle variable to remind yours

Re: Getting back into Perl

2014-05-09 Thread Shlomi Fish
Hi Mike, On Fri, 09 May 2014 13:56:24 -0500 Mike Dunaway wrote: > So, it's been a while since I've used Perl and I never really got THAT > deep into it to begin with, but I was reading over the source code for > MetaCPAN::Client: > http://api.metacpan.org/source/XSAWYERX/MetaCPAN-Client-1.003

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Kenneth Wolcott
On Fri, May 9, 2014 at 1:41 PM, Harry Putnam wrote: > I guess I need a mnemonic device to trick myself into remembering > which way the pipe with dash symbol goes. Think of it as "producer" and "consumer". You could use your file handle variable to remind yourself instead of using just "$ch". H

Re: about open with pipe '-|', '|-'

2014-05-09 Thread Shawn H Corey
On Fri, 09 May 2014 16:41:02 -0400 Harry Putnam wrote: > As soon as I think I've got it right by thinking: > > ok, left side is into the command > right side is out. > > If I start pondering over that ... it begins to seem it is the other > way. > > Gack I'm sick of it. Agreed. I w

about open with pipe '-|', '|-'

2014-05-09 Thread Harry Putnam
I guess I need a mnemonic device to trick myself into remembering which way the pipe with dash symbol goes. And I suppose I should apologize for the cry baby rant in advance: Even now I'm flopping around trying to remember... I've written scripts involving sending mail with sendmail from pe

Getting back into Perl

2014-05-09 Thread Mike Dunaway
So, it's been a while since I've used Perl and I never really got THAT deep into it to begin with, but I was reading over the source code for MetaCPAN::Client: http://api.metacpan.org/source/XSAWYERX/MetaCPAN-Client-1.003000/lib/MetaCPAN/Client.pm and I was wondering where I could read more abo