in reply to Adding another wildcard directory after scan.

Welcome to the Monastery.

It would be easier to read your posting if you update it using code tags around your code. Refer to Writeup Formatting Tips.

If you want to recursively list contents of directories, you could use File::Find (which is a Core module part of the Perl installation) or File::Find::Rule (which is a CPAN module) which many find easier to use.

Or a glob solution:

my @global = glob 'www/* www/*/*';

Replies are listed 'Best First'.
Re^2: Adding another wildcard directory after scan.
by valax (Initiate) on Jul 04, 2010 at 17:56 UTC
    First of all, thank you for linking me to the formatting tips.
    
    Secondly, thank you for answering my question.
    
    I wasn't aware I could actually do 'www/* www/*/*'; and so on. 
    
    
    That works perfectly, thanks again.
    
Re^2: Adding another wildcard directory after scan.
by runrig (Abbot) on Jul 04, 2010 at 17:46 UTC
    File::Find isn't going to help if the OP is listing a remote directory over ftp. Though a little code from the OP would help to see what he's really trying to do.