Your question is almost identical to these two, which include a lot of TIMTOWTDI solutions:
In reply to Re: perl one-liner to serve httpd current directory
by haukex
in thread perl one-liner to serve httpd current directory
by Galdor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |