|Public Scratchpad||Download, Select Code To D/L|
"I want to do something that is done in twenty-seven modules on CPAN, but without using modules. Please reinvent the wheel for me."
Since I'm all out of downvotes for the day, let's take a stab at solving the real problem: why does the OP think that they cannot use modules?
Please check the correct instructions. If they fail, post asking for help with installing the module. Be sure to include the exact text of the error message you received.
Either compile it on another machine or find a binary precompiled. If you cannot do either, then keep searching.
You need to keep searching.
Look inside the source code of the module to see one way to do it. If you do not understand parts of the module, ask for clarification.
If you cannot abide by the license, you need to keep searching. But if you are asking for free development work on code you intend to sell, don't bother.
If your whole point is to do it yourself, what are you asking us for?
It can be difficult to find what you want on CPAN. You will get the best results if you indicate what you have looked at and why it won't work. The reasons will help weed out additional suggestions that would not work for the same reason, or help people who wish to offer custom answers to better meet your needs.