Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re3: Constant Variables

by dragonchild (Archbishop)
on Mar 28, 2003 at 14:43 UTC ( #246473=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Constant Variables
in thread Constant Variables

You don't want to do that. You want to have a hash of configuration values. That way, you do something like:
my $string1 = qq!Hello, my favorite color is $config{color1}!;

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://246473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-12-10 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?