Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use Term::ReadLine;
    ...
    my $term = Term::ReadLine->new('test');
    print $term->ReadLine()."\n";
    $term->readline("try CTRL-C in some text here :");
    
  2. or download this
    marcel@machine:/tmp$ perl test.pl 
    Term::ReadLine::Gnu
    ...
    
     caught CODE(0x558c9e99acb0)INT
    marcel@machine:/tmp$