RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
; I put "_" instead of a space) There is a problem here that I didn't consider. If your line-length INCREASES, then this whole idea is, sadly, rubbish :( -Original Message- From: Tom Reed Sent: Wednesday, May 31, 2023 11:31 AM To: Claude Brown Cc: beginners@per

RE: storage types for big file

2023-05-30 Thread Tom Reed
line has content that needs to change) > { > > seek($fh, $startOfLine, 0) or die "seek: $!"; > print $fh $line; > } > > $startOfLine = tell($fh) or die "tell: $!; > } > > close($fh); > > &

RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
---Original Message- From: Tom Reed Sent: Wednesday, May 31, 2023 9:33 AM To: Claude Brown Cc: beginners@perl.org Subject: RE: storage types for big file > Do you have the option to "seek" to the correct place in the file to make > your changes? For example, perhaps: >

RE: storage types for big file

2023-05-30 Thread Tom Reed
> Do you have the option to "seek" to the correct place in the file to make > your changes? For example, perhaps: > > - Your changes are few compared to writing out the whole file > - Your changes do not change the size of the file (or you can pad line-end > with spaces) > 1. each time just ch

RE: storage types for big file

2023-05-30 Thread Claude Brown via beginners
Do you have the option to "seek" to the correct place in the file to make your changes? For example, perhaps: - Your changes are few compared to writing out the whole file - Your changes do not change the size of the file (or you can pad line-end with spaces) It is an edge case, but just a tho

Re: storage types for big file

2023-05-30 Thread Andrew Solomon
I haven't done this myself, but my first attempt would be with https://metacpan.org/pod/Path::Tiny using the spew_raw method. On Tue, May 30, 2023 at 1:28 PM wrote: > > Hello > > I have a big file after making changes in ram I need to write it back to > disk. > I know for text file store it's