Check out example codes for "perl user input". It will help you in understanding the concepts better.
Code Example 1
# Get a city name from the user print "Enter the cities you have visited last year... "; print "<Ctrl>-D to Terminate \n"; @city = <STDIN>; # Removes new line appended at # the end of every input chomp @city; # Print the city names print "\nCities visited by you are: \[email protected] ";
Learn ReactJs, React Native from akashmittal.com