xorl has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (files)
This is basically my script ....
Thanks!
Xorl
I tried using require but if I need to include the same file twice it tells me the libary is already loaded. Idealy I'd like something like PHP's include command.Any suggestions?if ($var eq "foo") { Include file1.pl and execute code } if ($var eq "bar") { Include file2.pl and execute code } else { Include file1.pl and execute code }
Thanks!
Xorl
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I include a file and excude the code in the file?⭐
by Albannach (Monsignor) on May 16, 2001 at 21:00 UTC | |
Re: How do I include a file and execute the code in the file?
by tachyon (Chancellor) on May 21, 2001 at 09:18 UTC | |
Re: How do I include a file and execute the code in the file?
by chromatic (Archbishop) on May 21, 2001 at 05:57 UTC | |
Re: How do I include a file and execute the code in the file?
by Anonymous Monk on Jun 04, 2001 at 10:04 UTC | |
Re: How do I include a file and execute the code in the file?
by ton (Friar) on May 20, 2001 at 00:38 UTC |
Back to
Seekers of Perl Wisdom