Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
!#/usr/local/bin/perl my @EMP_INFO; print "What is your name \n"; my $input_name = <STDIN>; push @EMP_INFO, <STDIN>; print "What is the location name\n"; my $input_location = <STDIN>; push @EMP_INFO, <STDIN>; print "What is the age \n"; my $input_age = <STDIN>; push @EMP_INFO, <STDIN>; for ( my $x=0; $x < @EMP_INFO; $x++ ) { print @EMP_INFO; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading input
by duff (Parson) on Feb 20, 2004 at 21:15 UTC | |
|
Re: reading input
by b10m (Vicar) on Feb 20, 2004 at 21:13 UTC | |
|
Re: reading input
by Skeeve (Parson) on Feb 20, 2004 at 21:09 UTC | |
|
Re: reading input
by NetWallah (Canon) on Feb 20, 2004 at 21:51 UTC |