From perldoc constant
"These constants do not directly interpolate into double-quotish strings, although you may do so indirectly."
There might be a bit of a performance hit when using the constants approach, but I doubt it's *huge* and you are protected from accidentally altering your constants.
"edited" by (arturo) hisself ... sorry, I thought I'd broken the lines up correctly and it showed up fine in my browser.
In reply to Re: my $var; vs. use constant VAR = '';
by arturo
in thread my $var = ''; vs. use constant VAR => '';
by antihero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |