- or download this
use Encode qw(decode);
use URI::Escape qw(uri_unescape);
my $string = decode 'utf-8' => uri_unescape $input;
- or download this
use Encode qw(encode);
use HTML::Entities qw(encode_entities);
my $output = encode_entities encode 'utf-8' => $string;
- or download this
#!/usr/bin/perl -w
...
print "Content-Type: text/html\n\n";
print read_file "$page.html";
- or download this
http://example.com/page.cgi?page=page.cgi%00blah!
- or download this
$string =~ tr/\x00-\x09\x0b\x0c\x0e-\x1f//d;
- or download this
#!/usr/bin/perl -wT
...
print "Content-Type: text/html\n\n";
print read_file "$page.html";