Nothing necessarily wrong with the latter. The point of making it would be to learn, remember? By creating the math framework - or whatever framework, math was just an example - you'll be learning Perl.