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 (strings)
Compare two strings of same length, character-by-character — 1⭐ / 5 What is the simplest way to print a field, as in $3 does in awk — 2⭐ / 2 How do I delete the last instance of a word from a string? — 2⭐ / 3 How would I be able to find all possible letter arrangements? — 1⭐ / 2 Is there a length limit to a string? In a flat file? — 2⭐ / 4 How do I find the percentage of similarity between strings? — 2⭐ / 5 How do I insert characters at certain positions in a string? — 1⭐ / 4 lt versus le in string comparision — 1⭐ / 1 How can I split a string into fixed-length parts, rather than on delimiters? — 1⭐ / 5 How do I find the length of a string? — 2⭐ / 7 What is the best way to capitalize a string? — 2⭐ / 3 How do I compare two strings? — 2⭐ / 5 How does Perl handle strings with embedded NULLs? — 1⭐ / 2 How do I insert (not overwrite) into a string? — 1⭐ / 9 How do I concatenate a string? — 1⭐ / 6 How do I treat a string like a filehandle? — 2⭐ / 5 How can I strip an arbitary number of leading spaces from a string? — 1⭐ / 5 How do I extract a file name from a path string — 2⭐ / 8 How do I assign & substitute in one statement? — 2⭐ / 3 How do I convert a string to Unicode and back (v5.005_03)? — 1⭐ / 4 How can i print N repeated characters? — 1⭐ / 2 What's the difference between chr() and pack('C',hex($1))? — 1⭐ / 1 How do I split on ',' followed by a capital letter? — 1⭐ / 3 Why does $string++ work the way it does? — 3⭐ / 4 How do I compare two strings against two arrays respectively? — 1⭐ / 6 How do I get the Nth Character of a String? — 3⭐ / 4 How to prevent metacharacter interpolation — 1⭐ / 4 How can I split a string into chunks of size n bytes? — 3⭐ / 3 How do I pull n characters off the front of a string? — 3⭐ / 6 How do I split a string containing path+filename — 2⭐ / 5 To express a null string, why would anyone use ...=q{} intead of ...= '' ? — 1⭐ / 2 How do I normalize (e.g. strip) diacritical märks from a Unicode string? — 2⭐ / 6 How do I replace a substring (if exists) with a different substring in a string? — 1⭐ / 4
|