Commits

Shlomi Fish committed e618c26

add the prompt program.

  • Participants

Comments (0)

Files changed (1)

sub-process-example/prompt-program.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use IO::Handle;
+
+print "Please enter your name:\n";
+STDOUT->flush();
+
+my $name = <>;
+chomp($name);
+print "Hello $name!\n";
+