in reply to delete a line from a file

delete a line from a file
... is a Frequently Asked Question.

One way to get an answer is at your command line:

perldoc -q delete

Another is to use Super Search, where title contains all of "delete", "line", "file":
http://www.perlmonks.org/?node_id=3989;HIT=delete%20line%20file;re=N

Update: fixed typo... thanks Fletch