Search code examples
perlpragma

Is there a reason to use warnings before use strict?


I remember seeing some comment somewhere that

use warnings;
use strict;

was preferable (rather than use'ing strict first, as I was wont to do). Is my memory correct? Does the order matter and, if it does, in what way?


Solution

  • I can't see how there is any technical reason for the order being significant. I always put use strict first as it happens but for no reason other than I've always done that!