wolverina has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: directory question
by tachyon (Chancellor) on Dec 22, 2003 at 04:11 UTC

    I presume this relates to your upload question so rather than telling you to RTFM about things like Cwd or glob will just give you the code so you can find out where you are on the server and thus the required file path.

    #!/usr/bin/perl use Cwd; $dir = cwd(); print "Content-Type: text/plain\n\n"; print "$_\n" for glob("$dir/*");

    cheers

    tachyon

      Thanx... wooferz..! -Lisa