develooper Front page | perl.beginners | Postings from December 2002

RE: Constants and Hash Question

Thread Previous | Thread Next
From:
Kipp, James
Date:
December 11, 2002 06:30
Subject:
RE: Constants and Hash Question
Message ID:
EC6C49DE5C846143AA2CE580420E77C331D283@xexwlm05.mbnainternational.com
print SOURCE;

> -----Original Message-----
> From: Paul Kraus [mailto:pkraus@pelsupply.com]
> Sent: Wednesday, December 11, 2002 9:17 AM
> To: Perl
> Subject: Constants and Hash Question
> 
> 
> I am declaring my constants like this.
> use constant SOURCE => "/path/folder/"
> Now how would I use this constant is a print statement or any 
> statement
> for that matter.
> print "$SOURCE" does not work and of course print "source" will not
> work.
> 
> > 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About