in reply to Re^2: split file in N part
in thread split file in N part

"accessing the length of the array via $x = scalar @tied_file accesses all records and stores their offsets."

Yowch! Missed that bit.

Blind CPANitis serves no one.

It is unfortunate that some modules have limitations. (In fact, I personally don't bother with Tie::File, ever since I noticed that using it to modify file contents can cause corruption.) But I don't believe that we should ignore CPAN or discourage the use of modules. IMHO, one shouldn't worry about the limitations of a module unless and until one has reason to believe that one's usage will be affected. And you'll notice that I referred to File::Split as an afterthought, not as a first and only suggestion.

A word spoken in Mind will reach its own level, in the objective world, by its own weight

Replies are listed 'Best First'.
Re^4: split file in N part
by BrowserUk (Patriarch) on Mar 10, 2008 at 18:24 UTC
    It is unfortunate that some modules have limitations.

    A file slitting module that cannot split files greater than it can hold in memory is more than a little bit limited.

    But I don't believe that we should ignore CPAN or discourage the use of modules.

    It's not a matter of "discouraging the use of CPAN". I've never done that, and never would.

    It's not blindly suggesting the use of modules for either a) inappropriate uses; b) or because the "name sounds right", without having looked inside to what they actually do.

    Especially as a replacement for existing, working code that doesn't have the limitations of the module you are suggesting.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.