Re: which module to read configuration file?

2014-09-07 Thread lee
"Richard Bailey" writes: > There is code available from my wizard at > http://www.rtbaileyphd.com/perlwizard that is doing something fairly similar > to what you described. Use PerlWizard to generate a simple test program, > run it once, and then examine the contents of the pwiz subirectory, whi

RE: which module to read configuration file?

2014-08-30 Thread Richard Bailey
. These are used in conjunction with Getopt::Long as well. Best Regards, R. T. Bailey -Original Message- From: lee [mailto:l...@yun.yagibdah.de] Sent: Saturday, August 30, 2014 12:09 PM To: beginners@perl.org Subject: Re: which module to read configuration file? lee < <ma

Re: which module to read configuration file?

2014-08-30 Thread lee
lee writes: > Hi, > > is there a module available to read configuration files which are like > this: > > > arbitrary_denominator-00 | alternate-denominator-00 | > alternate-denominator-01 [| ...] > { > itemA = > itemB = > itemC = > itemD = > } Following-up my own question: I found [

which module to read configuration file?

2014-08-30 Thread lee
oblem of printing (pre-filtered) incoming email, including the attachments, by various criteria ("when xx sends a PDF then print it unless it has more than N pages and print all HTML from xx, but print all PDF from xx when the subject is "foo"; never print the PDF sent by zz and only t

Re: How to use a configuration file?

2009-03-14 Thread Octavian Râşniţă
From: "Chas. Owens" I want to get some of these values (remoteProxy, the port and the IP address and some things more) from a configuration file. What is a good way to do this? What is a good format for this file? Human readable and easy to parse? snip I like YAML*, it is huma

Re: How to use a configuration file?

2009-03-14 Thread Chas. Owens
On Sat, Mar 14, 2009 at 08:41, Michael Renner wrote: > Moin, snip > I want to get some of these values (remoteProxy, the port and the IP address > and some things more) from a configuration file. What is a good way to do > this? What is a good format for this file? Human readable

How to use a configuration file?

2009-03-14 Thread Michael Renner
); I want to get some of these values (remoteProxy, the port and the IP address and some things more) from a configuration file. What is a good way to do this? What is a good format for this file? Human readable and easy to parse? Thanks -- |Michael Renner E-mail: michael.ren...@gmx.de |

Re: create a tree of a configuration file content

2008-12-01 Thread Rob Coops
On Mon, Dec 1, 2008 at 5:01 PM, Andreas Moroder < [EMAIL PROTECTED]> wrote: > Hello, > > I would like to parse ms .adm files. This files have a tree structure that > look like > > Category Name1 > category Name2 >categor Name3 > Policy pol1 >data lines here >... > En

create a tree of a configuration file content

2008-12-01 Thread Andreas Moroder
Hello, I would like to parse ms .adm files. This files have a tree structure that look like Category Name1 category Name2 categor Name3 Policy pol1 data lines here ... End policy Policy pol2 data lines here ... End policy end ca

Re: Configuration File generator

2005-04-25 Thread Offer Kaye
On 4/24/05, Tommy Nordgren wrote: > I wan't links to any useful tools for generating configure scripts in > perl. > That is, tools to automatically generate the configure script for > open-source > C/C++ projects. > Perl itself uses a "Configure" script generated using the "metaconfig" tool, whic

Configuration File generator

2005-04-24 Thread Tommy Nordgren
I wan't links to any useful tools for generating configure scripts in perl. That is, tools to automatically generate the configure script for open-source C/C++ projects. "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" -- To unsubscribe,

Re: Configuration File

2004-09-30 Thread Gunnar Hjalmarsson
Errin Larsen wrote: Gunnar Hjalmarsson wrote: Nothing prevents you from declaring @FILE_NAME: package Config; our @FILE_NAME; do "configtest.conf"; print "$_\n" for @FILE_NAME; doesn't that kinda defeat the purpose of declaring the Config name space? Can't see how. It is being decla

Re: Configuration File

2004-09-30 Thread Errin Larsen
On Thu, 30 Sep 2004 23:30:16 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > > Nothing prevents you from declaring @FILE_NAME: > > package Config; > our @FILE_NAME; > do "configtest.conf"; > print "$_\n" for @FILE_NAME; > > -- > Gunnar Hjalmarsson > Email: http://www.g

Re: Configuration File

2004-09-30 Thread Gunnar Hjalmarsson
Errin Larsen wrote: { package Config; do "configtest.conf" } print "$_\n" for( @Config::FILE_NAME ); Now, this code runs, and produces the expected output. However, it also gives me a warning: Name "Config::FILE_NAME" used only once: possible typo at ./configtest.pl line 7. I realize I can

Configuration File

2004-09-30 Thread Errin Larsen
this: { package Settings; do "$ENV{HOME}/.myprogrc" } As with a file read in using require or use, those read in using do count as a separate and unrelated lexical scope. That means the configuration file can't access its caller's lexical (my) variables, nor can the caller find any