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

Is SFTP included in any of the perl releases? Do I have to install this module manually? Thanks

Replies are listed 'Best First'.
Re: sftp question
by moritz (Cardinal) on May 08, 2008 at 21:50 UTC
    No, and probably yes.
Re: sftp question
by Sinistral (Monsignor) on May 09, 2008 at 01:55 UTC

    Now moritz, that's unlike you to be so curt (although your answer was correct).

    ActiveState does not currently distribute Net::SFTP via PPM, so that leaves that distribution out

    Default compile-it-yourself Perl definitely doesn't include it as a base module

    You could try Strawberry Perl or Vanilla Perl

    To see if your current Perl has it, use:

    perl -e 'use Net::SFTP'

    If you get nothing (as in, no errors) back, then you've got it. Otherwise, you don't

      Now moritz, that's unlike you to be so curt
      I just tried to match the question both in volume and research time ;-)
        Olé!
      Do you like to admonish others Sinistral?

        No, not at all. I was not admonishing, more lightly teasing. If you check out the number, depth, and breadth of moritz's postings, plus if you can see the number of nodes moderated by moritz, plus see how many experience points received since 2007 (!), you'll understand why I tweaked him. To be honest, I don't know how moritz gets so much outside productive work done while being such an active member of the PerlMonks community.

        I have nothing but the greatest respect for moritz's contributions to PerlMonks and everyone's understanding of Perl in general.

Re: sftp question
by casiano (Pilgrim) on May 09, 2008 at 05:43 UTC
    To see from which version a Module is in the Core Perl distribution write:
    $ perl -MModule::CoreList -e 'print Module::CoreList->first_release("N +et::SFTP")'
    But if you have an old version of Perl you need to install Module::coreList first

    Casiano