Read user inputs using Perl script.
#!c:\perl64\bin\perl.exe -w use strict; use warnings; #read scalar input print "Enter some value"; chomp(my $read =); print "$read";
print "\n";
#read multiple or a list of input values for arrays
print "Enter a list of values; to end the list, type ctrl + d (unix) ctrl+c on Windows Command Prompt"; chomp(my @readArr =); print "@readArr";
No comments:
Post a Comment