- or download this
# $page and $section are parameters from the user that have been clean
+ed of 0 bytes and obvious control characters
my $mantext = ''; my $status;
...
else {exec('/usr/bin/man', $page);}
}
# now reformat $mantext and display it.
- or download this
section=-P/usr/bin/whatever%20command%20I%20want&page=cat
- or download this
# $page and $section are parameters from the user that have been clean
+ed of 0 bytes and obvious control characters
my $mantext = ''; my $status;
...
else {exec('/usr/bin/man', '--', $page);}
}
# now reformat $mantext and display it.
- or download this
my $qpage = quotemeta($page);
my $qsect = quotemeta($section || '');
exec("/usr/bin/man $qsect $qpage");
- or download this
--
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/