Here is an example:
 
I have a file and save it to a directory whether it is one file or multiple files then 
i go to my perl script and type retrievelist.pl this should look into the specified 
directory in the code and display everything in this directory.
 
Then retrieve list should prompt the user to select one of the files it returned and 
then this would invoke another perl command called parselist.pl.
 
this should all take place in the retrieve list for now until i build a menu 
system...and i don't know when this will happen.
 
Any help would be greatly appreciated.
 
Thanks,
 
Lino


"Paul D. Kraus" <[EMAIL PROTECTED]> wrote:
On Thu, May 06, 2004 at 12:54:21PM -0700, Lino Iozzo wrote:
> Hello,
> 
> Is there a way to look into a folder and pull all of the contents in that folder and 
> display them on the command line.
> 
> I am trying to create a script that will look into a folder that the user selects 
> and then display what is in the folder so the user can then select the desired file 
> and then read that filename in and open it and then invoke more functions on the 
> opened file.

Can you give us a for instance? This is kind of vague. Can perl get a directory 
listing. Yes eaisly. perldoc -f readdir or lookinto globbing.

Can you then use what it returns later in a script to perform some action on the 
files. Yes also.

also looking to file::find.

With some more specific info we may be able to help out to a greater degree.


Paul D. Kraus
~=~=~=~=~=~=~=~=~=~=~=~=~
~ Network Administrator ~
~ PEL Supply Company ~
~ 216.267.5775 Voice ~
~ 216.267.6176 Fax ~
~=~=~=~=~=~=~=~=~=~=~=~=~
~ www.pelsupply.com ~
~=~=~=~=~=~=~=~=~=~=~=~=~

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



Reply via email to