"local $/="";
"If you wanted to format your regex nicely and have whitespace ignored, you could use the /x modifier"
Anyone else feel a dissonance here? I'd format the assignment (yes, it is an assignment) as:
local $/ = "";
On first glance the assignment looks like $/= "" to me and that's not right. An eye blink later it turns into $ /= "" which doesn't work either. It's only after two glances and a hard look that it resolves into $/ = "";. Using white space to reduce cognitive load is a Good Thing™
In reply to Re^2: Question about regex.
by GrandFather
in thread Question about regex.
by that_perl_guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |