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

Chris F.A. Johnson c.f.a.johnson-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Fri Aug 6 13:33:20 UTC 2004


On Fri, 6 Aug 2004, Madison Kelly wrote:

> Lennart Sorensen wrote:
>> On Fri, Aug 06, 2004 at 08:44:11AM -0400, Madison Kelly wrote:
>> 
>>>  I'll be adding the "%25" substitute in now to test. A question though; 
>>> would one of those 'pm' modules do this well:
>>> 
>>> - I use 'ls' to pass the file names in a directory to perl
>> 
>> 
>> readdir is probably better and more efficient than using ls.  Well
>> readdir and stat maybe,  Calling fork and exec to another process is not
>> the cheapest system call to make.
>
> Hi,
>
>  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!!

      Consider using "stat" to get file information; you can format the
      output any way you like, including just the information you want.

-- 
 	Chris F.A. Johnson                      http://cfaj.freeshell.org
 	=================================================================
                 Everything in moderation -- including moderation
--
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