On Sat, Mar 27, 2004 at 03:24:13PM -0500, Randy W. Sims wrote: > Harry Putnam wrote: > >I'm getting this output on stderr from a next clause: > > Exiting subroutine via next at ./test_bol.pl line 101. > > > >I wondered why this happens. Is it considered an error or what? > > > >The script is lengthy so not posting it here but the next does exit a > >sub routine. That is why I put it there. So how do I quiet perl > >down about this? > > > > Use 'return' to exit from a subroutine. Use 'next', 'redo', 'last', and > 'goto' to alter the execution path in loop constructs; they must appear > /inside/ the block owned by the loop construct or within a sub-block.
There are sometimes reasons to exit in an unconventional manner. You are looking for: no warnings "exiting"; Each warning perl gives should be found in perldiag, along with its category, should you wish to quieten it. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>