in reply to get the line with ith occurrence of '>'

Dear Monk, I tried this program only to open it:
#!/usr/bin/perl -w # #test if open can be used on large file #failed to open a 2.7 giga B file in 1 giga memory my $file = $ARGV[0]; print "$file\n"; open(IN, "<$file") || die "Could not open $file: $?\n"; close(IN);

the output is can not open the file. But when I tried it with a 126MB file, it works fine. The file is even too big for the system method open that I tried in a c program which returns a bad file descriptor. Again, it works fine with the 126 MB file. The OS is linux red hat. The file is of
">title
data
data
.."
format. 3 Millions of them. The memory of the machine is 1GB. The file is of 2.7GB. I am desperate now. Thank you for any hint/help. ginger

Edit kudra, 2002-10-04 Replaced br tags with code tags