I am mostly the author of Web-FTP which is a project of reasonable success, but it is starting to tax my patience with its limitations and cpu hogging...

Since I took this project over, some of the code is not mine, and many of my changes are kludged in making for a general mess, so I have decided a complete rewrite is in order...

The meat of the question...
I want to do this right, and allow people to use FTP, ssh, telnet, email, whatever as a backend... so I have decided to write a transparent backend module for transferring files. Something that allows you to use an api as close as possible to Net::FTP (I think, anyway) so that many people will just be able to plug it in and go... what I want to know is...
1) is there anything like this out there already
2) since so far I've found nothing, what suggestions might the venerable monks have to give on the subject of writing my own. I've used OO some, but not to the level I am looking at... I believe I want to create something like DBI (which may be a backend at some point as well)... but what is the best way to go about this? How do I load the existing modules on the fly and how do I pass calls through to them? do I make a master class with many methods that get overloaded by child classes, and each child class knows how to talk to its module? I believe this is right, but am by no means sure. How do I make it go for the proper subclass when FTP is specified to the super class? Any and all discussion will be appreciated. Thanks a lot.

                - Ant


In reply to Transparent file transfer module by suaveant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.