Help for this page

Select Code to Download


  1. or download this
    my %name_for;
    while (<>) {
        my ($name, @aliases) = split;
        $name_for{$_}=$name for ($name,@aliases);
    }
    
  2. or download this
    my $foo = 'alias1:blah1';
    $foo =~ s/(\w+)/$name_for{$1}/g;