Please help me with your infinite wisdom. I am pulling in a .dat file as an input file to my perl module usinf the following:

my $fname = "$datpath2/pd2x.dat2";

I am accessing the contents via:

open FH, "< $fname" or die "Cannot open datfile: ", $!; while (<FH>) { if (/"DESTINATION"/) { . . .

Whenever I get an input file greater than 45,000+ bytes my perl module comes to a stand still. Anything less than this and it runs just fine. What do I need to do to be able to input a larger file.

I apologize for being a novice

peace, LOVE and ((code))
basicdez


Edited: ~Fri Oct 18 21:32:21 2002 (GMT) by footpad: Added <code> tags and other HTML formatting to improve legibility, per Consideration


In reply to Increasing buffer size(?) for input FileHandle by basicdez

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.