Help for this page

Select Code to Download


  1. or download this
    sub now {
        login();
    ...
        $exp->send("\e");
        logoff();
    }
    
  2. or download this
    sub now {
        my $exp = login( @_ );  # caller passes login args to us.
        ...
        logoff( $exp );
    
  3. or download this
        my @comseq = (
            [ 256, '-foo', 'Bar?', "baz\r" ],
    ...
            $exp->expect( @$com );
            $exp->send( $send );
        }