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.
Electric dreams (yikes!)
2001: A Space Odyssey
None of the above, please specify
Results (178 votes),