in reply to recursive directory linking

Although I applaud the aggressive attempt to use perl for this problem, you might consider using find(1).

% find ./ -type d -exec ln -s some file {} \;

Replies are listed 'Best First'.
RE: RE: recursive directory linking
by knight (Friar) on Jul 29, 2000 at 02:53 UTC
    That will work only if some file is an absolute path name, which isn't quite what's indicated. To get the relative paths per the example, you'd need to append "../" to the beginning of the file name for each level deep you are in the directory tree--a bit of a trick using find, but a snap for perl...
RE: RE: recursive directory linking
by kirbyk (Friar) on Jul 29, 2000 at 04:37 UTC
    I'd recommend looking into the File::Find module. This is an excellent way to recursively process files in a directory - I've written a very similar script in the past using it.

    -- Kirby

    Tuxtops: Laptops with Linux!