in reply to Re: Foreach/While - Why does this run AFTER that?
in thread Foreach/While - Why does this run AFTER that?

This approach would work, but it seems like it does double the work. For example, this would create several small files on a drive, which would then have to be deleted.

Let's say as an example that this was run on 20+ .torrent files, all equaling 500mb. In the end, without a deletion, I would have around 9GB stored on the drive. Also, even if the data was deleted as the script ran, it would be taking up 9GB of space in the Recycle Bin (at least I think; I'm not sure if perl deletes to the recycle bin or just removes it entirely.) FWIW, I'm running perl on Win7 64bit.

I do like your idea, though :)

  • Comment on Re^2: Foreach/While - Why does this run AFTER that?