Editing some configuration files

2002-11-19 Thread Mailing lists
Dear sirs i have got to deal with a little problem, concerning the fast modification of some /etc/ file in a OpenBSD box. As you may realize, those files are owned by root; and i got to write a cgi that changes, let's say, the hostname, by modifying the /etc/myname file. I don't wanna give the cgi

RE: Using strict and configuration files

2002-06-11 Thread Bob Showalter
> -Original Message- > From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 10:21 AM > To: 'Bob Showalter'; Camilo Gonzalez; [EMAIL PROTECTED] > Subject: RE: Using strict and configuration files > > > So the following ar

RE: Using strict and configuration files

2002-06-11 Thread Camilo Gonzalez
So the following are equivalent: use vars qw(foo) our $foo = "" -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:17 AM To: 'Camilo Gonzalez'; [EMAIL PROTECTED] Subject: RE: Using strict and configuration files >

RE: Using strict and configuration files

2002-06-11 Thread Bob Showalter
> -Original Message- > From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 10:16 AM > To: 'Bob Showalter'; 'Octavian Rasnita'; [EMAIL PROTECTED] > Subject: RE: Using strict and configuration files > > > Bob, >

RE: Using strict and configuration files

2002-06-11 Thread Camilo Gonzalez
;; [EMAIL PROTECTED] Subject: RE: Using strict and configuration files > -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 28, 2000 4:32 AM > To: [EMAIL PROTECTED] > Subject: Using strict and configuration files > > > Hi all, &

RE: Using strict and configuration files

2002-06-11 Thread Bob Showalter
> -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 28, 2000 4:32 AM > To: [EMAIL PROTECTED] > Subject: Using strict and configuration files > > > Hi all, > > I want to use: > > use strict; > > And I

Re: Using strict and configuration files

2002-05-29 Thread Carl Franks
Hi, This is how I do it. #!/usr/bin/perl -wT use strict; my $conf; unless ($conf = do ('/path/to/config.pl')) { die ("Could not open file"); } print $conf->{'var1'}, "\n"; - Then in a file called "config.pl" { var1 => "one", var2 => "two" } - The "unless" part is just to che

Using strict and configuration files

2002-05-28 Thread Octavian Rasnita
Hi all, I want to use: use strict; And I want to use a configuration file in a Perl script. The configuration file uses: %page1=( ); %page2=( ); This way I get errors if I run the script because the variables are not defined with "my". I've tried putting in the configuration file:

Re: Configuration Files

2001-08-23 Thread Jeffl
Darren, try App::Config Jeffl On 2001.08.23 15:27 darren chamberlain wrote: > James Kelty <[EMAIL PROTECTED]> said something to this effect on > 08/23/2001: > > I would like to set up a configuration file for a CGI that I am writing > > so that it will be portable without > > editing the actual

Re: Configuration Files

2001-08-23 Thread darren chamberlain
James Kelty <[EMAIL PROTECTED]> said something to this effect on 08/23/2001: > I would like to set up a configuration file for a CGI that I am writing > so that it will be portable without > editing the actual cgi. Stuff like administator email's, network > segments, and the like. > > Is there a

Configuration Files

2001-08-23 Thread James Kelty
Hello. I would like to set up a configuration file for a CGI that I am writing so that it will be portable without editing the actual cgi. Stuff like administator email's, network segments, and the like. Is there a way to source the file for the cgi to read, or do I have to add a require statmen