Skip the first line by using the flip-flop operator

(this was an answer to a StackOverflow question that I didn’t post because it didn’t quite fit, but I use too keen on showing off the flip-flop operator to get rid of it all) I also put this in Reddit A few other places: perlfaq5: How do I change, delete, or insert a line in a file, or append to the beginning of a file? Respect the global state of the flip flop operator Make exclusive flip-flop…