Harry Putnam <[EMAIL PROTECTED]> writes:
> Running the ls from inside perl program
>
> #!/usr/bin/perl -w
> ## Notice the pipe symbol
Some kind of conspiracy has removed the PIPE symbol I referenced
(probably a `senior moment')
> open(PROC,"ls ");
^^^^
should have a pipe like this:
open(PROC,"ls |");
> while(<PROC>){
> ## collect file names
> push @ls_array,$_;
> }
> close(PROC);
> for(@ls_array){
> [...]
> }
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]