One other thing I've just noticed. Do you really want to replace the string 'total_bytes' with two double quotes or do you want to replace it with an empty string? If it's the latter, then you should use:
--s/total_bytes//ig;
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Substitution in a file
by davorg
in thread Substitution in a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |