I have a subroutine that displays data from a mysql table. I have several scripts which, after completing a task, will then display the contents of that table. Rather than copying the subroutine into each script, how can I use the subroutine from one file? If I need to save the file as a module, does it have to be placed in a special perl directory or can I keep it in my cgi-bin?
Thanks.