Thu 9 Nov 2006
Opening files in perl is a fairly easy task. Here are the basic file opens. Do not use them in production code.
PERL:
While strictly true, this isn't all we need. As with any I/O operation, we should be checking for success.
PERL:
Modern Perl versions allow the use of three part openings and lexical file handles.
PERL:
By checking for errors you are one step closer to safely opening the file and reading or writing to it. Perl also has several useful tools for operating on files.
Leave a Reply
You must be logged in to post a comment.