Just a reminder that $read() has default behaviors that may not be intuitive, requiring it be a good idea for most users to use the nt switches
Without the 'n' switch, it tries to evaluate identifiers found in the text line, and in some cases you can get some nasty surprises from this
Without the 't' switch, it looks at line#1 of the text file, and if it's a positive number, it uses that as the number of lines in the text file, even if line#1 has a much smaller number. The above syntax for $read shows a random line from the file, but if line#1 contains 10, then you get a random line from the next 10 lines, regardless how many lines there really are.
Last edited by Khaled; 20/08/19 01:28 PM.