Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Dealing with nextline of a file

by Anonymous Monk
on Jul 27, 2021 at 08:51 UTC ( [id://11135403]=note: print w/replies, xml ) Need Help??


in reply to Re: Dealing with nextline of a file
in thread Dealing with nextline of a file

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Dealing with nextline of a file
by kcott (Archbishop) on Jul 27, 2021 at 22:34 UTC
    "No Tie File esp for bioinformatics"

    -- As it stands, this is appalling and irresponsible advice and I urge the OP to disregard it.

    • It immediately struck me as FUD and flame-bait trolling.
    • It's a very lazy response. It lacks any reasoning. You couldn't even be bothered to write Tie::File correctly.
    • The OP did not mention "bioinformatics" nor, indeed, did anyone else (at the time of writing).
    • Tie::File is a core module: there would be no problems with having to install this from CPAN.
    • The "Tie::File - DESCRIPTION" has: "The file is not loaded into memory, so this will work even for gigantic files.".
    • There is a potential memory issue but that can be easily mitigated: see "Tie::File - memory".
    • The OP is only reading the file. There is no issue involving the rewriting of records from the point of modification.

    — Ken

      Sorry, but I disagree with both your and the AM's posts, as the issue is much more nuanced than "never use Tie::File" vs. "appalling and irresponsible advice". I used to recommend Tie::File, until I did some testing to see for myself the massive performance impact the module can have even when simply reading a file (in that test 23x slowdown). Bioinformatics often deals with very large datasets, so any slowdown can be significant, though the OP didn't say how large the files being processed are.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135403]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-19 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found