in reply to How to create a "CONSTANT"
which is an attempt to create a CONSTANT which looks like variable
use vars qw( $PIE ); *PIE = \"Warm Apple"; print "pie: $PIE\n";
You were pretty specific, so I'm assuming you were already aware of use constant PIE => "Warm Apple"; which results in a constant sub that can't be interpolated into strings (easily.)
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to create a "CONSTANT"
by Willard B. Trophy (Hermit) on Jun 07, 2003 at 15:22 UTC | |
by larsen (Parson) on Jun 07, 2003 at 15:50 UTC | |
by sauoq (Abbot) on Jun 07, 2003 at 19:00 UTC |