second version of inline thingy
This commit is contained in:
parent
20c678ecc8
commit
611c9f4355
@ -3,11 +3,19 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
|
|
||||||
print "How about a line of input?: ";
|
my @inlines = ();
|
||||||
|
my $i = 0;
|
||||||
|
|
||||||
|
for ($i = 0; $i < 3; $i++) {
|
||||||
|
print "input please: ";
|
||||||
my $inline = <STDIN>;
|
my $inline = <STDIN>;
|
||||||
|
$inline =~ s/\s*$//;
|
||||||
|
$inlines[$i] = $inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print "You said:\n";
|
print "You said:\n";
|
||||||
print $inline;
|
print join("|", $inlines[0], $inlines[1], $inlines[2] . "\n");
|
||||||
|
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user