in reply to Splitting form input
For my first 6 months as a perl programmer I often wrote line splitters like yours. Then I realised that they are the kiss of death as it is very hard to wirte a block of code that takes all possible input conditions into account. Then, while trying to do such a thing, I discovered CGI.pm
After crying and banging my head against the wall for several hours at the thought of allthe hours I had spent writing code that imitated - badly - some of the things that CGI did I then vowed to always search CPAN before starting a project!
People always say in this situation 'use this' or 'use that' but it is worth reiterating why. With the CGI module, for example, several year's worth of development, by a large number of people has gone into making sure that that module is the best way of reading CGI data possible. Because of that you will find it impossible to duplicate that work or even write something that is nearly as good.
So always do a module search, it will save pain! :)
$japh->{'Caillte'} = $me;
|
|---|