Help for this page

Select Code to Download


  1. or download this
    while (my $line = <INFILE>) {
        $line =~ s/(\S+)/$dict{$1} || $1/eg;
        print $line;
    }
    
  2. or download this
        $line =~ s/(\S+)/defined $dict{$1} ? $dict{$1} : $1/eg;
    
  3. or download this
        $line =~ s|(\S+)|$dict{$1} // $1|eg;