Sandboxing while I am learning

2011-08-29 Thread flebber
I have a new debian install and am continuing to learn perl. Whilst I know I should use perlbrew to keep my perl version separate from my system version is there anyway to sandbox the perlbrew environments. So basically If I want to experiment and toy with different cpan apps and so forth I can w

Re: Cannot write to fifo

2011-08-29 Thread Jim Gibson
On 8/29/11 Mon Aug 29, 2011 7:53 AM, "Ramprasad Prasad" scribbled: > How can I open multiple FIFO files in perl and print to them simultaneously The program below only opens one FIFO. Is your problem related to opening multiple FIFOs or opening one FIFO? > I tried a simple script does not wor

Cannot write to fifo

2011-08-29 Thread Ramprasad Prasad
How can I open multiple FIFO files in perl and print to them simultaneously I tried a simple script does not work #!/usr/bin/perl use strict; use IO::File; $|=1; system("rm -f /tmp/fifo1;mkfifo /tmp/fifo1"); open (OUT,"> /tmp/fifo1") || die; for (0 .. 10){ print "Hi $_\n"; print OUT "H

Re: loop break condition

2011-08-29 Thread Rob Dixon
On 28/08/2011 19:48, Mike McClain wrote: On Sat, Aug 27, 2011 at 08:16:50PM +0200, Dr.Ruud wrote: I would like 'lazy' syntax like: <$fh> x {/^#/ or print}; to process a list. When I tried your code like so: open my $fh, '<', $file or die qq(Unable to open $file: $! ); <$fh>