use strict; use Term::ReadKey; use Data::Dumper; my @EMP_INFO; ReadMode('normal'); print "What is your name: "; push @EMP_INFO, ReadLine(0); print "What is the location name: "; push @EMP_INFO, ReadLine(0); print "What is the age: "; push @EMP_INFO, ReadLine(0); foreach (@EMP_INFO) { chomp; print $_ ."\n"; }