in reply to Re^3: Modernizing the Postmodern Language?
in thread Modernizing the Postmodern Language?
G'day WaywardCode,
'... "your code will adhere to strict and warnings no matter what."'
My general recommendation is that you should start all code with those two pragmata. I see not having to always type them as a good thing.
Having said that, the article to which you linked has a number of examples of no. I'm not aware of any reason why you couldn't use that on the rare occasions that you don't want those pragmata.
I would strongly suggest that you only turn off parts of the functionality in a limited lexical scope. Perhaps something like:
my @punctuation_chars; { no warnings 'qw'; @punctuation_chars = qw{. , ; :}; }
— Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Modernizing the Postmodern Language?
by WaywardCode (Sexton) on Jun 30, 2020 at 15:51 UTC | |
by LanX (Saint) on Jun 30, 2020 at 17:51 UTC |