Help for this page

Select Code to Download


  1. or download this
    joey___joey@yahoo.com
    martha___martha@aol.com
    
  2. or download this
    open (IN, "filename.txt") or die "can't open filename.txt!";
    while ( $line = <IN> ) {
    ...
      push @addresses, $parts[1];
    }
    close IN;
    
  3. or download this
    $names[0]
    
  4. or download this
    $addresses[0]
  5. or download this
    open (IN, "filename.txt") or die "can't open filename.txt!";
    while ( $line = <IN> ) {
    ...
      $hash{$name} = $address;
    }
    close IN;
    
  6. or download this
    
    print "joey's address is ", $hash{"joey"}, ".\n";