I have a list of items in a file,
foobar
barfoo
bar
faaboo
foo
boofar
fo
b
Using perl, I'm just after script that will go through the filename and delete all items 3 characters or less. Overwrite the existing filename (without creating a new, or temp filename), Thus the list will be become.
foobar
barfoo
faaboo
boofar