Also possible (since There's More Than One Way To Do It):
require Data::Dumper; no warnings 'once'; local $Data::Dumper::Indent = 0; use warnings 'once';
If the local is in a sufficiently-small scope, omit the use warnings.
Shameless plug: See also My Favorite Warnings: once.
In reply to Re: require and use strict vars
by Anonymous Monk
in thread require and use strict vars
by karlberry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |