perlman
root
This section deals with I/O and the ``f'' issues: filehandles, flushing, formats, and footers. <BR><BR>
[How do I flush/unbuffer an output filehandle? Why must I do this?]<BR>
[How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file?]<BR>
[How do I count the number of lines in a file?]<BR>
[How do I make a temporary file name?]<BR>
[How can I manipulate fixed-record-length files?]<BR>
[How can I make a filehandle local to a subroutine? How do I pass filehandles between subroutines? How do I make an array of filehandles?]<BR>
[How can I use a filehandle indirectly?]<BR>
[How can I set up a footer format to be used with write()?]<BR>
[How can I write() into a string?]<BR>
[How can I output my numbers with commas added?]<BR>
[How can I translate tildes (~) in a filename?]<BR>
[How come when I open a file read-write it wipes it out?]<BR>
[Why do I sometimes get an "Argument list too long" when I use <*>?]<BR>
[Is there a leak/bug in glob()?]<BR>
[How can I open a file with a leading "żçô¾" or trailing blanks?]<BR>
[How can I reliably rename a file?]<BR>
[How can I lock a file?]<BR>
[What can't I just open(FH, ">file.lock")?]<BR>
[I still don't get locking. I just want to increment the number in the file. How can I do this?]<BR>
[How do I randomly update a binary file?]<BR>
[How do I get a file's timestamp in perl?]<BR>
[How do I set a file's timestamp in perl?]<BR>
[How do I print to more than one file at once?]<BR>
[How can I read in a file by paragraphs?]<BR>
[How can I read a single character from a file? From the keyboard?]<BR>
[How can I tell if there's a character waiting on a filehandle?]<BR>
[How do I do a <CODE>tail -f</CODE> in perl?]<BR>
[How do I dup() a filehandle in Perl?]<BR>
[How do I close a file descriptor by number?]<BR>
[Why can't I use "C:\temp\foo" in DOS paths? What doesn't `C:\temp\foo.exe` work?]<BR>
[Why doesn't glob("*.*") get all the files?]<BR>
[Why does Perl let me delete read-only files? Why does <CODE>-i</CODE> clobber protected files? Isn't this a bug in Perl?]<BR>
[How do I select a random line from a file?]<BR>