Q&A > regular expressions > How do I strip lines prefixed by a "#" contributed by Anonymous Monk
@code_lines = grep !/^#/, @all_lines;
The above code is taken directly from the Camel head book.
Compiling them myself
Merijn's HP-UX software
Whatever is shipped with my OS release
None, i use PerlScript
Results (111 votes),