in reply to JAPH does the splits
I'm not sure if this is platform-independent. I hope it is.
perlfunc documents that crypt() is just a wrapper around the crypt() function in the C library. That function may be different on different platforms, according to POSIX: "The algorithm is implementation-defined." and "The first two bytes of this string [the salt argument] may be used to perturb the encoding algorithm." (i.e. implementations may choose to ignore the salt). The crypt function may even be not implemented: "The crypt() function shall fail if: ENOSYS The functionality is not supported on this implementation.". According to perlport, Android does not implement crypt(), and on Win32, it depends on how perl was compiled.
So, unfortunately, this JAPH may not work on all platforms.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: JAPH does the splits
by syphilis (Archbishop) on Apr 13, 2015 at 13:40 UTC |