in reply to Re^2: How do I move two lines up in a file using perl
in thread How do I move two lines up in a file using perl

Your course notes should cover that.

Have you read tell and seek? At least seek has an example showing how to use seek and tell in conjunction.

  • Comment on Re^3: How do I move two lines up in a file using perl