mh53j_fe has asked for the wisdom of the Perl Monks concerning the following question:
Here is what I have written so far:
I want do something like:#!/usr/local/bin/perl5.00506 use CGI; $query = new CGI; $query_string = $query->param('DIR'); print "Content-type: text/plain", "\n\ print `ls -lt $query_string`;
However, this does not work. Any help that you can provide will be highly appreciated. Regards,print `ls -lt *.sql *.txt *.log .. $query_string`;
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Outputting contents of ls -lt
by marto (Cardinal) on May 04, 2005 at 16:29 UTC | |
|
Re: Outputting contents of ls -lt
by marto (Cardinal) on May 04, 2005 at 17:39 UTC | |
|
Re: Outputting contents of ls -lt
by tlm (Prior) on May 04, 2005 at 19:08 UTC | |
|
Re: Outputting contents of ls -lt
by TedPride (Priest) on May 04, 2005 at 16:26 UTC |