Help for this page

Select Code to Download


  1. or download this
    chomp(my $input_name = <STDIN>);
    push @EMP_INFO, $input_name;
    
  2. 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?");
    
  3. or download this
    for my $ei (@EMP_INFO) { print "$ei\n"; }
    
  4. or download this
    print map { "$_\n" } @EMP_INFO;
    
  5. or download this
    print "@EMP_INFO";                   # or
    print join "\n", @EMP_INFO;