1)
You can use Constants:-
use constant BUFFER_SIZE => 4096;
use constant ONE_YEAR => 365.2425 * 24 * 60 * 60;
use constant PI => 4 * atan2 1, 1;
use constant DEBUGGING => 0;
use constant ORACLE => '[EMAIL PROTECTED]';
use constant USERNAME => scalar getpwuid($<);
use constant USERINFO => getpwuid($<);
2)
You can write your own private module, which defines such things.
Cheers
- Roger -
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 7:47 AM
Subject: Global Variables
> Need some help.
>
> I think that I need to be using global variables. Unless Someone has a>
> better solution.
>
> What I am trying to do is. I want to set a variable for such things as
>
> FONT_COLOR=000000
> BACKGROUND_COLOR=555555
>
>
> For example: So that I do not have to go through every file and set that
> on
> ever line that I would like to use it on. I would like to set global
> variable so that if I change (in this case) the colors than I only have
to
> change it in one place and be done with it.
>
> Which brings me to my question. Unless you know a better way of doing it.
> How do I set global variables????????????
>
>
> Jason
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]