passing "%20" in a url to Perl via CGI

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri Aug 6 13:45:27 UTC 2004


On Fri, Aug 06, 2004 at 09:21:28AM -0400, Madison Kelly wrote:
>   I've heard this before and I have been too distracted to look into it 
> deeper (I had other code to write and that "worked"). Now though it's 
> getting more important because the file scan can take a -long- time. Can 
> I use 'readdir' to get the same information that I can get with:
> 
> ls -lAh --full-time
> 
> ?
> 
> It's very important that I get as much information on each file and 
> directory as possible. Thanks!!

You use readdir() to get the files in the dir, and then use stat() to get
everything you could ever want to know about the file.  That is exactly
what ls does in a seperate process.  It's not very hard to use.  Saves a
bunch of text parsing too.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list