Help for this page

Select Code to Download


  1. or download this
    { package Server;
    
    ...
    my $server = Server->new(ssh => Net::OpenSSH->new('me@10.0.1.22'));
    print $server->grab('ls');
    
  2. or download this
    You can use a role name as the value of handles:
    
    ...
      );
    
    Moose will introspect the role to determine what methods it provides a
    +nd create a name-for-name mapping for each of those methods.
    
  3. or download this
      has 'ssh' => (is => 'ro', isa => 'Net::OpenSSH', required => 1, hand
    +les => 'MyOpenSSH', );
    
  4. or download this
    You cannot overwrite a locally defined method (grab) with a delegation