Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: 302 Found Location Messageby AnomalousMonk (Archbishop) |
on Mar 09, 2020 at 21:35 UTC ( [id://11114048]=note: print w/replies, xml ) | Need Help?? |
Walter_T: To expand on the first point made by haukex, re-declaring a global (e.g., our) variable isn't just unnecessary, it's completely useless. The only thing it will do is to generate a warning message if warnings are enabled – which, IMHO, they should always be.
As the warning message suggests, you may have been thinking of local, which will actually do something in this situation. But even when used in this way, globals should, I believe, be avoided. In general, use globals only for good, well-understood reasons. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|