Your skill will accomplish what the force of many cannot |
|
PerlMonks |
exiting via next: Extra careful or just bitchy?by vacant (Pilgrim) |
on Apr 19, 2004 at 18:55 UTC ( [id://346409]=perlquestion: print w/replies, xml ) | Need Help?? |
vacant has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks:
I have the following pretty simple subroutine which finds and returns the next non-empty, non-comment line in an input text file. Comments are lines beginning with "#". dprint() is a printing sub for debugging. This code works perfectly, but for every comment in the input file, Perl complains (even without strict): Exiting subroutine via next...What kind of trouble can doing it this way cause, or why is Perl complaining?
Thanks kindly,
Back to
Seekers of Perl Wisdom
|
|