pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (0)
Philip Newton ([personal profile] pne) wrote in [site community profile] dw_dev_training 2012-02-06 10:09 am (UTC)

Another way of doing this is using sed, like this:

sed -ie 's/\t/ /g' yourfile.pl


Perl also has an -i switch (I think due, in part, to its originally having to compete with the established sed).

So you could boil down the script to something like perl -i -pe "s/\t/    /g" file1 file2 file3 .

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting