dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

Added 'process*' methods #208

Closed ambs closed 6 years ago

ambs commented 6 years ago

Hi, David

Not sure if you are interested in this method. But I may confess I would have used it already some times if it existed. The rationale is: what to process a file, line by line, but do not want to edit it, as it is (for example) read-only.

If you find this useful, I would be grateful.

If you think something is missing, let me know, and I will fix it.

Cheers ambs

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 94.004% when pulling 086b4d2a6ee1b3b2a212571c1393ea9318c6de55 on ambs:master into 80c3eca4bc3eca61e3429047d55597e32446e7f8 on dagolden:master.

xdg commented 6 years ago

I think that's easy enough to do with lines and a for loop or filehandle and a while loop, that I don't want to add extra method for it.