Hi, Maybe not being compiled with libcrypt ? What is the output of "perl -V | grep --color -i crypt" and "ldd /home/masayoshi/localperl/bin/perl" ?
Regards, On Sat, May 25, 2024 at 4:00 PM Masayoshi Fujimoto <m.fujim...@yandex.ru> wrote: > Hi. > OpenBSD does not work crypt. > Does it depends on OSes ? > Do you know why I can not use it ? > > Perl uses the following crypt? > https://man.openbsd.org/crypt > > # My crypt.pl > use strict; > use warnings; > use v5.10; > say crypt("Ava Max", "Salt"); > > > FreeBSD works crypt.pl > % perl -v > This is perl 5, version 36, subversion 3 (v5.36.3) built for > amd64-freebsd-thread-multi > > % perl crypt.pl > Sasi0YO57eKNE > > OpenBSD does not works crypt.pl > > OpenBSD$ perl -v > > This is perl 5, version 36, subversion 3 (v5.36.3) built for amd64-openbsd > > OpenBSD$ perl crypt.pl > > Use of uninitialized value in say at crypt.pl line 4. > > OpenBSD$ > > I got a empty line. As it didn't work, I installed perl from source code. > > https://www.cpan.org/src/README.html > > OpenBSD$ /home/masayoshi/localperl/bin/perl -v > > This is perl 5, version 38, subversion 2 (v5.38.2) built for > OpenBSD.amd64-openbsd > > OpenBSD$ /home/masayoshi/localperl/bin/perl crypt.pl > Use of uninitialized value in say at crypt.pl line 4. > > OpenBSD$ > >