in reply to Exiting subroutine via next (that old chestnut)

I'd suggest:
RemoveComments(\$temp) and next;

Replies are listed 'Best First'.
Re^2: Exiting subroutine via next (that old chestnut)
by why_bird (Pilgrim) on Mar 04, 2008 at 17:23 UTC
    What does the 'and' do? (Googling for "perl 'and'" or "perlsyn 'and'" doesn't give much usefullness :P) I would have thought that that would just throw away every line of my file..?
    ........
    Those are my principles. If you don't like them I have others.
    -- Groucho Marx
    .......
      'and' is an operator. The idea would be to return a true value from your subroutine if you want to skip that line, and a false value otherwise.