#!/usr/bin/perl open(DATA, "< gps.pl.htm"); @data=; close(DATA); foreach (@data) { convert_umlaut($_); } sub convert_umlaut { $temp=shift; $temp =~ s/ö/ö\;/g; $temp =~ s/ü/ü\;/g; $temp =~ s/ä/ä\;/g; $temp =~ s/Ö/Ö\;/g; $temp =~ s/Ü/Ü\;/g; $temp =~ s/Ä/Ä\;/g; $temp =~ s/ß/ß\;/g; print $temp; }