It is good practice to use local with changes to special variables (such as $/) so that other code isn't affected by unexpected changes to such variables.
A related consideration is limiting the use of $_ to places where its use is unavoidable such as map, grep and statement modifiers.
In reply to Re: read file a paragraph at a time and return paragraph OR get specific data from paragraph
by GrandFather
in thread read file a paragraph at a time and return paragraph OR get specific data from paragraph
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |