Thread Perl Problem Code: PHP Code Umschreiben (24 answers)
Opened by Gast at 2006-02-19 09:40

pq
 2006-02-21 10:27
#6934 #6934
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=zeus75,21.02.2006, 06:59]
Code: (dl )
1
2
3
4
5
6
7
8
9
if (length ($ENV{'QUERY_STRING'}) > 0){  
     $buffer = $ENV{'QUERY_STRING'};  
     @pairs = split(/&/, $buffer);  
     foreach $pair (@pairs){  
          ($name, $value) = split(/=/, $pair);  
          $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;  
          $GET{$name} = $value;  
     }  
}  
[/quote]
was hast du eigentlich gegen
my %GET = $cgi->Vars;
?
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Perl Problem Code: PHP Code Umschreiben