Troy,

You didn't specify what you error was ... can I suggest you thoroughly read
the docs in perlfunc about require ... http://www.perldoc.com would be a
good place to start, or even just typing 'perldoc -f require' at your
friendly neighbourhood command line.

If options.txt isn't perl code and/or doesn't terminate with a true value,
then you're doing something wrong. If you're getting an error about not
being able to find the module, may I suggest:

$file = "/absolute/path/to/files/$FORM{'id'}/options.txt";
eval "require $file";

Hope this helps
+Pete

--
[EMAIL PROTECTED]
;;($_='Yw_xUabcdtefgdijktljkotiersjkUzxT
yvlkbfdtcierstajogvPruntRshackRJelov')=~
y&/RTUv;wxYz$&/ ~'/;$=();$&&&eval&&print



"Troy May" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm trying to use the require command with perl but when i want to put a
> variable within the require statement it always errors out. The code looks
> something like this.
>
> require "/absolute/path/to/files/$FORM{'id'}/options.txt";
>
> Is this not possible? thanx for the help.
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to