in reply to CR/LF in bin

You shouldn't be using env. You should be using #!/usr/bin/perl which gets rewritten to the correct line by the installer. A script should use the perl that installed it (and thus has the modules it needs), not whichever happens to be first in the search path. Hopefully, the installer is CR-aware, avoiding the entire issue.

Replies are listed 'Best First'.
Re^2: CR/LF in bin
by dk (Chaplain) on May 09, 2024 at 17:50 UTC
    that works thank you... and I don't even need #!/usr/bin/perl, just #!perl is enough actually, and that was working fine. This one script I stumbled on had #!env perl instead, and that didn't work well for some reason. Possibly a bug in the installer, because #!perl is getting translated quite correctly to #!/usr/bin/perl, while #!env perl translated to #!/usr/bin/env perl but newline is not stripped properly