- or download this
!#/usr/local/bin/perl
- or download this
my @EMP_INFO;
print "What is your name \n";
my $input_name = <STDIN>;
push @EMP_INFO, <STDIN>;
- or download this
my $input_name = <STDIN>;
push @EMP_INFO, $input_name;
...
my $input_age = <STDIN>;
push @EMP_INFO, <STDIN>;
- or download this
for ( my $x=0; $x < @EMP_INFO; $x++ ) {
# This will run 3 times....
print @EMP_INFO;
# This will print out your whole array. Three times
}