Help for this page

Select Code to Download


  1. or download this
    !#/usr/local/bin/perl
    
  2. or download this
    my @EMP_INFO;
    
    print "What is your name \n";
    my $input_name = <STDIN>;
    push @EMP_INFO, <STDIN>;
    
  3. or download this
    my $input_name = <STDIN>;
    push @EMP_INFO, $input_name;
    ...
    my $input_age = <STDIN>;
    push @EMP_INFO, <STDIN>;
    
  4. 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
    }