Is there some conviented way to use one constant when defining another constant in perl?
The following obviously does not work
use constant {
MAIN_DIR => "/path/to/some/dir",
PROP_DIR => MAIN_DIR . "/sub_dir",
PROP_FILE => PROP_DIR . "/props.props",
};
The only think I could think of is multiple use constant
lines, but it's a bit ugly...