that is a very basic hash reference

i have a reference tutorial up, if you want to read more
find it at: www.sharemation.com/~perl/tut

hth
Jos Boumans

----- Original Message -----
From: "Tim Musson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 6:24 PM
Subject: Re[5]: Best practice for config file use?


> Hey Jos,
>
> I like this option the best of the 3, but it is still hard to give to
> a non programing person and not expect them to mess up setting the
> vars...
>
> ie, => is what you separate things with, explaining which ' to
> use (' not `), end each parameter line with a ,
>
> Wednesday, June 27, 2001, 6:15:54 PM, you wrote:
>
> JIB> 2.    script that just uses one hashref to hold all the vars you
> JIB> need, let's call it config.pl too
>
> JIB> ### config.pl ###
> JIB> $href = {
> JIB>     usr    => 'foo',
> JIB>     pwd  => 'bar',
> JIB>     host  => 'bleh.com',
> JIB> };
>
> JIB> ### in your script you'd say: ###
> JIB> require 'config.pl'
> JIB> use vars qw($href);    #now it's just one variable that's being used,
still
> JIB> holding all your config data
>
> --
> [EMAIL PROTECTED]
> Using The Bat! eMail v1.53d
> Windows NT 5.0.2195 (Service Pack 1)
> Life would be easier if I had the source code.
>
>

Reply via email to