Welcome to the Illuminations!
Here you will find questions (from the Seekers of Perl Wisdom section) which have been esteemed by our venerable monks to be exceptional.
These questions are organized with categories (tags, keywords).
These exceptional questions will likewise have one or more replies which have been deemed best.
When you're viewing the SoPW section, or the threaded view of a question, each exceptional question and its best replies are indicated with a nice golden star: ⭐
The users empowered to designate questions and answers as "exceptional" are the Q&A Editors group.
For further information, see the FAQ How are the Illuminations maintained?
Good Questions in categories (files)
How can I process large files efficiently? — 2⭐ / 2 How do I delete files based on their timestamp? — 1⭐ / 2 How do I portably determine if two filenames refer to the same file? — 1⭐ / 1 How do I test if I file exists without attaching a filehandle to it? — 2⭐ / 3 How do I send a file to the printer on Win32? — 1⭐ / 2 How do I read the contents of a file? — 3⭐ / 5 How do I write to a file? — 2⭐ / 6 How do I append or write to the end of a file? — 1⭐ / 3 How do I pick a random line from a file? — 3⭐ / 7 How do I do a bulk rename? — 2⭐ / 4 How do I read an entire file into a string? — 4⭐ / 12 How can I compare (the content of) two files? — 1⭐ / 3 How do I prevent anybody from looking at the contents of my text files ? — 1⭐ / 3 How do I compare the lines in two text file? — 2⭐ / 3 How do I determine encoding format of a file ? — 1⭐ / 5 How do I determine file creation or last-access date? — 1⭐ / 3 How can I get image height and width without using Image::Size? — 1⭐ / 6 How do I find the total number of lines in a file? — 1⭐ / 10 What is the easiest way of having a configuration file for my program? — 4⭐ / 7 Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'? — 1⭐ / 3 How do I copy out the last line written in a file? — 2⭐ / 3 How can I determine the size of a file? — 1⭐ / 3 How do I get all the permission flags on a file? — 2⭐ / 2 How do I test for a blank line when reading from a file? — 1⭐ / 4 How else can I read from a file without using a while loop, testing for the EOF? — 2⭐ / 6 How do I test whether a file has some contents or not? — 1⭐ / 3 Target filename of a symbolic link — 2⭐ / 2 How do I get the full path to the script executing? — 1⭐ / 10 How do I split a file into an array using blank lines as delimiter — 1⭐ / 2 How can I remove everything between two lines in a file? — 1⭐ / 1 How do I pre-extend a file to a specified size — 1⭐ / 2 How do I modify a file and preserve the ownership and permissons? — 1⭐ / 1 How can we read each line from a file onto an array? — 2⭐ / 5 How do I include a file? — 1⭐ / 6 How do I get the full path for a file? — 2⭐ / 2 How do I include a file and execute the code in the file? — 1⭐ / 5
|