You may want to generate an index.html too:perl -Mojo -e'a->static->paths->[0] = "."; a->start' daemon
ls | perl -lne 'print qq{<br><a href="$_">$_</a>}' > index.html
In reply to Re: one-line web server
by bduggan
in thread one-line web server
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |