Help for this page

Select Code to Download


  1. or download this
    sales:bob@foo.com
    sales:joe@foo.com
    ...
    support:david@blah.com
    retail:judy@bar.com
    support:jose@blah.com
    
  2. or download this
    sales:bob@foo.com,joe@foo.com,debbie@foo.com,john@foo.com
    retail:steve@bar.com,judy@bar.com
    support:david@blah.com,jose@blah.com
    
  3. or download this
    %hash;
    while (<>) {
        my ($dept,$email)=split(/:/);
        $hash{$dept}{'email'} = $email;
    }