At 09:52 -0800 2001.03.09, Christopher Palmer wrote:
>opendir (CURRDIR, '') || die "Can't open it!";
>@file_list = join ("\n", readdir (CURRDIR)) . "\n";

>I think I already see what you mean...by joining the directory names
>with newlines I made them into one string...AHA!!

Yep.

>So, a new question...what's a better way to do what I am trying to do?

        @file_list = readdir(CURRDIR);

Or you can just do:

        foreach $file_name (readdir(CURDIR)) {

Directly assigning to @file_list is probably better, though.

-- 
Chris Nandor                      [EMAIL PROTECTED]    http://pudge.net/
Open Source Development Network    [EMAIL PROTECTED]     http://osdn.com/

Reply via email to