http://qs321.pair.com?node_id=502301


in reply to Scriptome and Perl One-Liners

Apart from the dubious educational value of one-liners, I don't like this collection at all, for two reasons:

Since they are ready-to-use recipes, it would have been more useful to save each case into a well written Perl script, with properly named variables, and using a database when needed.

The way it is now, it will just spread the rumor of Perl being a write-only language.

Replies are listed 'Best First'.
Re^2: Scriptome and Perl One-Liners
by BrowserUk (Pope) on Oct 23, 2005 at 12:00 UTC

    Have you ever heard the expression "If you have a hammer, everything looks like a nail"? Or maybe in your case, "If you have a a dirty great big wrench, every nail, screw, thumb-tack and piece of blu-tac looks like it should be replaced with a dirty great big nut'n'bolt :)

    Do you really import flat files into your DB for one-off column sums? You must have an awful lot of once-used, ever-to-be-forgotten junk lying around in DB(s).


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.