Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: reading a particular line in a large text file

by jimbojones (Friar)
on Oct 15, 2004 at 22:10 UTC ( [id://399684]=note: print w/replies, xml ) Need Help??


in reply to reading a particular line in a large text file

Hi

I ran your code and had the same error. The problem is that you haven't imported the O_RWDR and O_CREAT constants.

Try adding
use Fcntl;
to the top of your script.

also, you probably want
#!/usr/bin/perl
-jim

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://399684]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found