in reply to CPAN not so comprehensive

If you look at the sample, the exec method is called on a $chan object. And if you look at the previous line:

my $chan = $ssh2->channel(); $chan->exec('program');

You'll see that is create using the channel() method. Look down for the documentation on the channel method and you find:

channel ( [type, [window size, [packet size]]] ) Creates and returns a new channel object. See Net::SSH2::Channel.

That reference to Net::SSH2::Channel is a live link, and if you click it, you'll find:

exec ( command ) Execute the command on the remote host (calls process("exec", command)). Note that the given command is parsed by the remote shell; it should be properly quoted, specially when passing data from untrusted sources.

Modules by this author are better (if sometimes more tersely) documented than most.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Replies are listed 'Best First'.
Re^2: CPAN not so comprehensive
by Anonymous Monk on Mar 27, 2018 at 04:44 UTC

    Thank you kindly BrowserUk, when you showed it to me, everything seemed to be a bit clearer :). So, documentation can be nested, it's a valuable information.

    May i assume that this rule applies to all modules? like when Foo::Bar calls baz method and i did not find (sub?)methods for baz, looking for Foo::Bar::baz is an option?

    Question might sound naive, but i am rather skilled in shell scripting/ 8bit assemblers and this whole OO-way of thinking is much abstraction to me. I found it very complicated as you can see on above example...

      May i assume that this rule applies to all modules? like when Foo::Bar calls baz method and i did not find (sub?)methods for baz, looking for Foo::Bar::baz is an option?

      No. Don't assume that. It is entirely down to how the author choses to document (or not!) his code.

      But it certainly does no harm to look for it :)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit