5.4. User InputExample 5-3. examples/scalars/read_from_stdin.pl #!/usr/bin/perl use strict; use warnings; print "Enter your name, please: "; my $name = <STDIN>; print "Hello $name, how are you ?\n";
$ perl examples/read_from_stdin.pl There is this problem of the newline
|
Follow me: