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 @results = `ls`;



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to