Help for this page

Select Code to Download


  1. or download this
    Use of uninitialized value in concatenation (.) or string at first.pl 
    +line 5.
    
  2. or download this
    foreach my $num (@arr) {
            print "Index is: $num. Value is: $arr[$num] ";
    }
    
  3. or download this
    foreach my $num (@arr) {
            print "Index is: $num. Value is: $arr[$num - 1] ";    # Subtra
    +ct 1 from the index
    }
    
  4. or download this
    for($num = 0; $num<= $#arr;$num++) {
    
  5. or download this
    for (my $num = 0; ...