File: interactive.pl

package info (click to toggle)
libio-prompt-perl 0.997001-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 240 kB
  • ctags: 20
  • sloc: perl: 845; makefile: 2
file content (9 lines) | stat: -rwxr-xr-x 115 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#! /usr/bin/perl -w

# Basic example...

use IO::Prompt;

while (prompt "next: ") {
    print "You said '$_'\n";
}