in reply to using other files with program

Two problems:

  1. When you give require a bareword, it assumes it's the name of a module and appends '.pm'. As your's is the full name of the file you need to quote it.
  2. A required file needs to return a true value. This is normally achieved by putting 1; as the last line of the file.

Both of these errors give obvious error messages. Didn't you see them?

It's well worth the time learning how to bundle this stuff u pinto a real module.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."