Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Delete every n line

by Fletch (Bishop)
on May 09, 2008 at 14:54 UTC ( [id://685688]=note: print w/replies, xml ) Need Help??


in reply to Delete every n line

  • open the file
  • Read the lines of the file in a while loop
    • Figure out if this line is a multiple of 25 (hint $.)
    • If it isn't, print it
  • close the file
  • underpants Profit!

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-19 22:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found