in reply to Re: Backdating strict
in thread Backdating strict
The inverse is true too.
If you've got a long script and you don't feel ready to convert the whole thing over to strict, you can switch it on for a particular sub:
sub do_stuff { use strict; ...; }
If your script is working fine as-is, leave it alone. If you notice a bug in a sub or need to add a new feature to a sub, then switch on strict for just that sub while you're making your improvements, and then leave it on for that sub. Over time, more and more of your script will become strict. Once most of the file seems to be strict, then making the whole file strict will be a much smaller task.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Backdating strict
by Bod (Parson) on Nov 19, 2020 at 17:14 UTC | |
by jcb (Parson) on Nov 20, 2020 at 02:49 UTC | |
by marto (Cardinal) on Nov 19, 2020 at 17:55 UTC | |
by Bod (Parson) on Nov 19, 2020 at 18:02 UTC | |
by Bod (Parson) on Nov 20, 2020 at 15:46 UTC | |
Re^3: Backdating strict
by Bod (Parson) on Nov 30, 2020 at 23:01 UTC | |
by tobyink (Canon) on Dec 02, 2020 at 01:23 UTC | |
by Bod (Parson) on Dec 02, 2020 at 18:49 UTC | |
by LanX (Saint) on Dec 01, 2020 at 04:55 UTC |