in reply to Re^4: Holding site variables
in thread Holding site variables
It's not a terrible approach - I use something similar for a particular set of projects but with 2 important differences:
Example (but with the package inlined just for ease of illustration):
#!/usr/bin/env perl use strict; use warnings; package MyStuff { use constant BODPLAN => 'Have a separate dev server'; # ... more constants here } print "Bod's plan: " . MyStuff::BODPLAN . "\n";
🦛
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Holding site variables
by Bod (Parson) on Mar 21, 2024 at 18:13 UTC | |
by hippo (Archbishop) on Mar 21, 2024 at 22:31 UTC |