Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How do I strip lines prefixed by a

by Anonymous Monk
on Apr 03, 2001 at 23:15 UTC ( [id://69427]=note: print w/replies, xml ) Need Help??


in reply to How do I strip lines prefixed by a "#"

Use grep:

@code_lines = grep !/^#/, @all_lines;

The above code is taken directly from the Camel head book.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://69427]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found