--- Kyle Babich <[EMAIL PROTECTED]> wrote: > Sorry for bothering everyone again, but could > someone tell me what to change > so that I can import variables from external files > and get them to work in > the current file? (see original message) > > Thank you, > Kyle
Copied from "perldoc CGI": -- begin quote ------------------ CREATING A NEW QUERY OBJECT FROM AN INPUT FILE $query = new CGI(INPUTFILE); If you provide a file handle to the new() method, it will read parameters from the file (or STDIN, or whatever). The file can be in any of the forms describing below under debugging (i.e. a series of newline delimited TAG=VALUE pairs will work). Conveniently, this type of file is created by the save () method (see below). Multiple records can be saved and restored. -- end quote ------------------ Note that this requires use of CGI's object-oriented interface. So instead of use CGI qw/:standard/; print header, start_html; you instead say use CGI; my $query = new CGI(INPUTFILE); print $query->header, $query->start_html; or just "my $query = new CGI;" to get parameters the normal cgi way, or a variety of other ways which you can read about in "perldoc CGI", which I encourage you to do. - John P.S. I'm about to unsubscribe to go on vacation. I will probably be back in a few weeks. ===== "Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still alive, and there's nothing I want to do." - They Might Be Giants, http://www.tmbg.com __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]