declaring constants
From: Troy Knight (troyboy_at_blueyonder.co.uk)
Date: 07/25/04
- Next message: Mark: "Undefined subroutine CGI::Vars"
- Previous message: momena: "writing to a pipe on win32"
- Next in thread: nobull_at_mail.com: "Re: declaring constants"
- Reply: nobull_at_mail.com: "Re: declaring constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jul 2004 05:42:39 GMT
This may seem like a dumb question but I've only just got back into perl
after a few years. I would be very grateful if someonme could answer this...
I'm trying to define constants which can be used across multiple source
files. This:
use constanr MY_CONSTANT => 5;
seems to only work if it's put in the main source file. How do I rectify
this so it can be used when it's defined in another source file?
Many thanks,
Troy Knight
- Next message: Mark: "Undefined subroutine CGI::Vars"
- Previous message: momena: "writing to a pipe on win32"
- Next in thread: nobull_at_mail.com: "Re: declaring constants"
- Reply: nobull_at_mail.com: "Re: declaring constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|