| Randal | note that the salt is always the first two chars of the result |
| Jmax- | why is that notable? |
| Randal | it's necessary! eval: crypt("abcdefgh", "ij") |
| buubot | Randal: ijFYNcSNctBYg |
| Randal | eval: crypt("abcdefgh", "ik") |
| buubot | Randal: iklPKkFSAzL9Q |
| Randal | see - two different crypts for the same string you have to know how to match it later |
| Jmax- | what if you had a larger salt? |
| Randal | so you use the crypted version's salt (first two chars) to crypt() the original later |
| jonsmith1982 | like linux login encryption |
| Randal | the salt is always only two chars for crypt(3) |
| Jmax- | ah ok |
| Randal | actually - perl's crypt calls crypt(3) if your crypt(3) does more then it follows those rules |
| Jmax- | thank you :) |
| diakopter | I'm having a problem with ExtUtils::MM_Unix - when installing some modules from the CPAN (that apparently don't take this feature of ExtUrils::MM_Unix into account), some of their tests depend on warning strings being exactly equal, and in the target comparison, the line numbers are "hardcoded". The problem is, ExtUtils::MM_Unix is inserting the "not running under some shell" idiom at the top of each test, causing those tests to fail ( |
| Randal | yeah - testing sucks sometimes ignore the tests, yell at the developer |
| diakopter | Randal: ok I thought about getting that portion of MM_Unix to not insert any newlines at all, but I don't know if other module authors take this idiom insertion into account. |
| Randal | well, I may be jumping to a hasty conclusion. :) it *might* be MM_Unix's problem too |
| diakopter | oh, now this is good. the module I'm trying to install is by the same author as EU:MM I guess I could backtrace all the releases to see where this crept in Test::Simple, by the way oh. it's been in there for a *long* time |
| perlmaster | hi |
| diakopter | fwiw, Perl::Critic has this: "_unfix_shebang" that detects it |
| ScrwLoose | hi there, is there any way to check a reference type ? in perl, for example if I got arrays, scalar and hash references within a array, how do I know how to manage them? |
| mmk[null] | ref ? |
| ScrwLoose | with ref? |
| Randal | so you can just type that interactively |
| Lotso | let me give it another go cool |
| Randal | and if you have ReadLine installed you can just hit uparrow to edit |