in reply to Re^3: Crypt() usage
in thread Crypt() usage

...or use File::Edit::Portable which does the translations automatically for you, cross-platform, so you don't have to figure out which ending to use yourself ;)

use File::Edit::Portable; my $rw = File::Edit::Portable->new; my $fh = $rw->read('file.txt');

Disclaimer: author of said module here