Schreib das doch ganz einfach so:
1
2
3
4
5
6
7
8
9
10
11
12
sub encode {
$param = shift;
$param =~ s|\?|55X77X85X4|g;
$param =~ s|\&|33X56X89X3|g;
return $param;
}
sub decode {
$param = shift;
$param =~ s|55X77X85X4|\?|g;
$param =~ s|33X56X89X3|\&|g;
return $param;
}
Dann machste vorm übergeben der url an den parameter page
folgendes:
$page = encode ($page);
$page = decode ($page);
Wäre ne Möglichkeit
Edit: Fehler im Skript behoben\n\n
<!--EDIT|SirLant|1063111894-->
--Programming today is a race between Software Enginers striving to build bigger and better idiot-proof Programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning!