Ken Slater <kenslate...@gmail.com> writes: (Note: somehow a post about like below didn't make it to the list when my other response did... this is paraphrasing)
>> cat tst: >> >> #!/usr/local/bin/perl >> >> use strict; >> use warnings; >> >> my $cmd = 'ls /'; >> >> open my $ch, '-|', "$cmd" or die "Can't open $cmd: $!"; >> >> while ($ch) { >> print; >> } > > I believe you meant: > > while (<$ch>) > Thanks for the input. Oh er yes, yes of course. I would not have ever tried something so idiotic and foolish... it was an attempt at humor.... Of course, I'm way to sophisticated to have made such a blunder. Just seeing if the list was asleep. (yeah right!) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/