I've written a simple script to randomly print out a line from a file (it's a random error generator). I would like to store the contents of that file in the Perl script. I have investigated the use of the
construct, but everything I've read discusses using it in a module. Is there any way to use it in a script? If so, how would that be done?