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

Replies are listed 'Best First'.
Re: opening a port
by arhuman (Vicar) on Feb 14, 2001 at 22:18 UTC
    Is this question Perl related (I mean do you want to code a kind of file server in perl ?)
    Or do you want to share your hard disk or set up a ftp servers (or hotline server or whatever...) ?
    In either way you have to be more precise...

    To answer strictly to your answer : to open a port and listen, check IO::Socket doc.

    UPDATE : As always I'v typed too slowly and 2 answers were post (making mine redundant) while I was typing, as always ignore this post, or better vote it for deletion (nodereaper)
Re: opening a port
by arturo (Vicar) on Feb 14, 2001 at 22:12 UTC

    It's a long story in Perl. Why write something from scratch? (especially when you'd have to write both server and client) Get FTP server software. Or use gnutella. (Update) Or, set up a web server and put the files in your HTML tree (that should work on Windows / *nix-style platforms).

    This is a wheel you shouldn't try to reinvent.

    HTH

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Re: opening a port
by zigster (Hermit) on Feb 14, 2001 at 22:17 UTC
    This is certainly not a perl question, and the answer depends very much upon what you want to do. I suggest you take a look at getting an ftp demon running on your machine (easy if you are running unix not so for windows)

    The principles of getting this setup and working are well outside the scope of PM I suggest you try and find a more appropriate forum. Perl is a programming language you are looking for an application. Take a look at the usenet for more info.

    If I have completely missjudged the question and you really are looking for a perl solution then take a look at Net::FTpServer


    --

    Zigster