Hi,

        After reading the thread on (RE: verify file exits) I was curious.
What is the fastest way to open a file in perl?  A colleague of mine told me
when I was learning perl that it is better to read the whole file in at once
and store it in an array.  I  am currently using this:

while (<FILE>) {
  push @FILE_FILE, [ split /whatever/, $_ ];
  }


is there a better way?  I just saw that you can simply do this:

@FILE_FILE = <FILE>;


Normally I would check to make sure that the line I read in actually had
data, and clearly the = solution doesn't accommodate this unless you sliced
the array afterwards.  When I was learning C, C++ I always read a character
at a time.  So what is the best way in perl?

Thanks!
-Tim

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to