Re: Using the require command with perl

2001-10-30 Thread Michael Fowler
On Mon, Oct 29, 2001 at 07:07:54AM +0100, Pete Sergeant wrote: > $file = "/absolute/path/to/files/$FORM{'id'}/options.txt"; > eval "require $file"; The contents of $file are going to show up as an expression with barewords, division, and concatenation; it won't compile. Did you mean: $file

Re: Using the require command with perl

2001-10-29 Thread Pete Sergeant
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

Using the require command with perl

2001-10-28 Thread Troy May
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,