That won't be optimized away, but a constant true value (not 0, "0", "" or undef) are.
This means you can have less code and more efficiency, but still the clarity you like:
while ('forever'){
...
}
Which is equivalent to
while (1) { ... }, which is optimized to
for (;;) { ... }.
2;0 juerd@ouranos:~$ perl -e'undef christmas'
Segmentation fault
2;139 juerd@ouranos:~$