Add a blank line after every line to obtain a double spaced output.

Use the -i(extension) switch to make the changes in-place.

perl -pe '$_.=$/' file