in reply to Re^3: Efficient use of memory
in thread Efficient use of memory

I couldn't agree more.. Honestly, I find both Text:: modules you suggested pretty nifty, and I would gladly use them - it will certainly prevent bizarre errors if the data specs change in the future.

my point was that it doesn't make sense to use various modules to take care of technicalities like parsing, but then refuse to use modules in the actually functional parts of the code... Using a simple module for a simple task is good, IMO - we know exactly what is happenning behind the curtains, but we're spared from having to write the details.. lazy..

Replies are listed 'Best First'.
Re^5: Efficient use of memory
by salva (Canon) on Jun 04, 2005 at 20:11 UTC
    Usually I also think that if some module for the task at hand is available from CPAN it is the way to go...

    But this time I find that calculating the mean, variance and max and min values is so simple that using a module doesn't worth the trouble:

    • find the most suitable module on CPAN, sometimes really hard!
    • download and install the module
    • study its documentation
    • model your application around it
    • find bugs related to wrong module usage.
    • etc.

    Well, on my original post I was also really thinking on the modules used by the OP (Statistics::Basic::*) that were causing a lot of convolution on his code. Statistics::Descriptive::Sparse seems more appropiate and easy to use