Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 594869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:00:00+00:00 2026-05-13T16:00:00+00:00

Requirements I have a very large CSV file to read. (about 3 GB) I

  • 0

Requirements

  • I have a very large CSV file to read. (about 3 GB)
  • I won’t need all records, I mean, there are some conditionals that we can use, for example, if the 3rd CSV column content has ‘XXXX’ and 4th column has ‘999’.

Question:
Can I use these conditionals to improve the read process? If so, how can I do that using Perl?

I need an example (Perl Script) in your answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:00:00+00:00Added an answer on May 13, 2026 at 4:00 pm

    Here’s a solution:

    #!/usr/bin/env perl
    use warnings;
    use strict;
    use Text::CSV_XS;
    use autodie;
    my $csv = Text::CSV_XS->new();
    open my $FH, "<", "file.txt";
    while (<$FH>) {
        $csv->parse($_);
        my @fields = $csv->fields;
        next unless $fields[1] =~ /something I want/;
        # do the stuff to the fields you want here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an 32bit application with very large memory requirements. I noticed that there
Here I have 2 requirements: Need a batch file to start a process on
I'm in need of a distributed file system that must scale to very large
I'm writing some C where I'm going to need to store a very large
There is a need to visualize large quantity of 2d graphic objects (draw some
I have a very different requirement in my app.Using the app i need to
I have a large SVG file (approx. 60 MB, 10000x10000 pixels but with the
I have to develop a fairly large ASP.NET MVC project very quickly and I
I have a large XML file, in which every nodes requires a CDATA tag.
We have a very large (10million+) row table stored in MySql using the InnoDB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.