in reply to Wish to keep only those lines which start with letter s, and delete all other lines.

If you're on Unix, you don't necessarily need Perl for this at all:
$ egrep -v ^s input-file
  • Comment on Re: Wish to keep only those lines which start with letter s, and delete all other lines.
  • Download Code