<p>I am working on a Perl script to read CSV file and do some calculations.
CSV file has only two columns, something like below.</p>

<pre><code>One Two
1.00 44.000
3.00 55.000
</code></pre>

<p>Now this CSV file is very big ,can be from 10 MB to 2GB.</p>

<p>Currently I am taking CSV file of size  700 MB. I tried to open this file in notepad, excel but it looks like no software is going to open it.</p>

<p>I want to read may be last 1000 lines from CSV file and see the values.
How can I do that? I cannot open file in notepad or any other program.</p>

<p>If I write a Perl script then I need to process complete file to go to end of file and then read last 1000 lines.</p>

<p>Is there any better way to that? I am new to Perl and any suggestions will be appreciated. </p>

<p>I have searched net and there are some scripts available like <a href="https://metacpan.org/pod/File::Tail" rel="nofollow noreferrer"><code>File::Tail</code></a> but I don't know they will work on windows ?</p>

In *nix, you can use the tail command.
```
```
tail -1000 yourfile | perl ...
```
```
That will write only the last 1000 lines to the perl program.
On Windows, there are
gnuwin32
and
unxutils
packages both have
```
tail
```
utility.