Well, three things pop into mind while reading this.
- SSH has been implemented in pure perl. You could do that. Your limitation is based on size, not dependency, so any module functionality you reproduce will still take up (possibly more or less) space on your system. Is an SSH client binary smaller than a gzipped ssh client script including the pure perl implementation?
- You could think about all the things you (or others) used to do with shell scripts before they had perl. Ok, now think about how much you could improve the functionality of your code when you discovered sed, awk, or grep. Now rewrite it in perl.
- Building on the previous item, if you had core modules like Socket you could build all kinds of marvelous tools. A web browser with simple markup (lynx), a file server that takes a filename and dumps contents back down the pipe (webserver), a multiuser chatsystem (ychat), a lush descriptive text based game (mud/bbs). I've seen all these implemented as shell scripts, they're cake in perl.
They are all very simple protocols you could emulate with a telnet client, could you imagine trying to do something like this on a heavy modern protocol based on XML wrapped packets, bleh.
You could spend time recoding your second program, the one you wrote right after Hello World:
10 print "elwarren is cool!"
20 goto 10
:-) The question is kind of like, what should I code next? It's all up to you and your imagination.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.