- or download this
chomp(my $input_name = <STDIN>);
push @EMP_INFO, $input_name;
- or download this
sub Query {
print "@_\n";
...
push @EMP_INFO, Query("What is your name?");
push @EMP_INFO, Query("What is the location?");
push @EMP_INFO, Query("What is the age?");
- or download this
for my $ei (@EMP_INFO) { print "$ei\n"; }
- or download this
print map { "$_\n" } @EMP_INFO;
- or download this
print "@EMP_INFO"; # or
print join "\n", @EMP_INFO;