lmarecha has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
This is my first post. I have already done some simple program but I have to do a more complete one and I was looking for a way to use a definition file. I was looking for an INCLUDE equivalent in Perl. What I want to put inside are subroutine and global variable definition.
It's something new to me, I check the FAQ but didn't find anything. Seems to be a basic question. Here is what I have find on different source but there is there something more simple to do ?
- Use package/module with require/use.
- Use eval to read a file and eval the content.
Cheers,
lmarecha
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there any INCLUDE equivalent in Perl ?
by danger (Priest) on Feb 28, 2001 at 02:42 UTC | |
|
Re: Is there any INCLUDE equivalent in Perl ?
by archon (Monk) on Feb 28, 2001 at 02:31 UTC | |
|
Re: Is there any INCLUDE equivalent in Perl ?
by mirod (Canon) on Feb 28, 2001 at 02:36 UTC | |
|
Re: Is there any INCLUDE equivalent in Perl ?
by Hot Pastrami (Monk) on Feb 28, 2001 at 02:29 UTC | |
|
(boo)Re: Is there any INCLUDE equivalent in Perl ?
by boo_radley (Parson) on Feb 28, 2001 at 03:00 UTC | |
by lmarecha (Acolyte) on Mar 02, 2001 at 03:12 UTC |