As long as your going to use ${} to interpolate vars into strings, which is generally a good idea. Then you can use constants in a similar way with a single extra '\' character:
use constant NL => "\012";; print "fred${\NL}bill${\NL}";; fred bill
In reply to Re^4: 2*pi*$r -- constant function without prototype
by BrowserUk
in thread 2*pi*$r -- constant function without prototype
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |