Re: How do I feed terminal output into a perl script...

2003-02-10 Thread Harry Putnam
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 lik

Re: How do I feed terminal output into a perl script...

2003-02-10 Thread Rob Dixon
Hi Mark. Mark Vanmiddlesworth wrote: > I want to feed the output of an "ls" command into a perl script and > store it as a variable, but I can't seem to figure out how to do this. > How can I get this working? Unless you have a good reason to use 'ls', you may well be better off doing it within P

Re: How do I feed terminal output into a perl script...

2003-02-09 Thread John W. Krahn
Mark Vanmiddlesworth wrote: > > I want to feed the output of an "ls" command into a perl script and > store it as a variable, but I can't seem to figure out how to do this. > How can I get this working? To store the results in a scalar: my $results = `ls`; To store the results in an array: my

Re: How do I feed terminal output into a perl script...

2003-02-09 Thread Harry Putnam
Mark VanMiddlesworth <[EMAIL PROTECTED]> writes: > I want to feed the output of an "ls" command into a perl script and > store it as a variable, but I can't seem to figure out how to do > this. How can I get this working? > > thanks, > mark > > p.s. I'm using tcsh on mac os 10.2 I now nothing abo

How do I feed terminal output into a perl script...

2003-02-09 Thread Mark VanMiddlesworth
I want to feed the output of an "ls" command into a perl script and store it as a variable, but I can't seem to figure out how to do this. How can I get this working? thanks, mark p.s. I'm using tcsh on mac os 10.2 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: