in reply to
Q&A Cleanup Quest
I'll take a look at Files, Hashes, and Input and Output. I'm feeling ambitious.
Files
Answer: How do I read the contents of a file?
-- needs a return value check and formatting cleanup.
Answer: How do I append or write to the end of a file?
does too.
Answer: How do I delete a file?
needs to check the return value.
Answer: How do I read an entire file into a string?
needs an explanation and a return value check for
open
.
Answer: How do you write to the middle of a file?
does too. The answer given there isn't as simple as the one posed in the question, either.
how to use arguments in the code.
belongs somewhere else.
programs and processes
perhaps?
how do i add file/folder
needs an example or two in the answer.
How do i read and search into a text file which is in another remote host?
should go in
network programming
, perhaps, or just go away. It's an incomplete question.
How do you store a line from a file in a variable?
is the same type of question as
How do I read contents of a file?
.
I need an array of filehandles.
should be changed to
How do I create an array of filehandles?
and the two answers combined.
Is it possible to get a filename from a filehandle?
is a FAQ, according to
merlyn
.
How do i go to a particular char in a file. How do u use the fseek function?
could be renamed "How do I seek a certain position in a file?" Perl doesn't seem to have an fseek function, though C does. It also has a couple of thank you posts.
Is there a method to extract a certain number of char from a line in a file?
could probably go away, as it's a description of
substr
. Or else, rename it to "How can I extract a certain number of characters from a file?"
good methods for searching large log files?
could be changed to "How can I process large files efficiently?"
Answer: How do I delete files based on their timestamp?
can be deleted, according to
BBQ
.
How do I test if a file has write permission?
could use a bit of formatting touch-up.
How do I implement
belongs in
CGI programming
, and should be called "How can I check the HTTP_REFERER variable against a list of referrers?"
Hashes
How do I use/reference Multidimensional hashed arrays?
confuses me. Is it about an array or a hash or some combination of the two?
How do I completely remove a key/value pair from my hash?
needs a bit of formatting and a # to mark the comment in
vroom
's answer.
Why is this statement always evaluating to true?
has more to do with true/false values than hashes, and should have been asked in
Seekers of Perl Wisdom
.
Input and Output
Funny usage of print function
could be renamed to "Why does Perl print newlines embedded in a string?", but that would make the answer super obvious. :)
how do i redirect STDOUT, STDIN, or STDERR to a FILE?
needs one authoritative answer. Perhaps
Buckaroo Buddha
could concatenate his responses.
Bad file description for win32/bash/perl combo
should have been in
Seekers of Perl Wisdom
.
Comment on
RE: Q&A Cleanup Quest
In Section
Quests