in reply to Re^5: Newline's creep in, while using Tie::File
in thread Newline's creep in, while using Tie::File

Not to mention if you use your editor right it literally is boiler plate; I use yasnippet but even other (*cough* inferior :) editors have similar functionality. When I open a new file and get a buffer in cperl-mode all I have to type is "script" then TAB and I get a script ready to go with my cursor sitting at where the $0 marker is (the header before the comment with -- being removed of course, and depending on the use of a version greater than 5.10 to turn strict on).

# -*- snippet -*- #name : perl script # -- #!/usr/bin/env perl use 5.032; $0 exit 0; __END__

The cake is a lie.
The cake is a lie.
The cake is a lie.