Re: no warnings inside a loop

2013-04-03 Thread Rob Dixon
On 04/04/2013 00:29, Angela Barone wrote: I'm just curious about this. If you put "no warnings" inside a loop, is it good only for that loop, or will it be in effect until the end of the script? Also see `perllexwarn` Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addition

Re: no warnings inside a loop

2013-04-03 Thread Rob Dixon
On 04/04/2013 00:29, Angela Barone wrote: I'm just curious about this. If you put "no warnings" inside a loop, is it good only for that loop, or will it be in effect until the end of the script? Hi Angela The `warnings` pragma is *lexically* scoped. That means it applies to the (rest of) the

Re: no warnings inside a loop

2013-04-03 Thread Charles DeRykus
On Wed, Apr 3, 2013 at 4:29 PM, Angela Barone wrote: > I'm just curious about this. If you put "no warnings" inside a > loop, is it good only for that loop, or will it be in effect until the end > of the script? > See: perldoc perllexwarn >From above doc: ... use warni

Re: no warnings inside a loop

2013-04-03 Thread Jim Gibson
On Apr 3, 2013, at 4:29 PM, Angela Barone wrote: > I'm just curious about this. If you put "no warnings" inside a loop, > is it good only for that loop, or will it be in effect until the end of the > script? 'no warnings' is lexically scoped, meaning that its effect is limited to its e

Re: no warnings inside a loop

2013-04-03 Thread Brian Fraser
On Wed, Apr 3, 2013 at 8:29 PM, Angela Barone wrote: > I'm just curious about this. If you put "no warnings" inside a > loop, is it good only for that loop, or will it be in effect until the end > of the script? > > Only for the loop -- warnings, along with most other pragmas (strict, fea