but get Undefined subroutine &main::cryptThis is because prepending subroutines with an ampersand forces a user defined function to be called. If you're really determined to override the default prototype, you could just subvert crypt with the subs module e.g
For a good rant^Warticle on prototypes in perl see Tom Christiansen's FMTEYEWTK about Prototypes in Perl.use subs 'crypt'; sub crypt { CORE::crypt($_[0], $_[1]) } print crypt( (time) x 2 );
_________
broquaint
In reply to Re: crypt prototype and ( time ) x 2
by broquaint
in thread crypt prototype and ( time ) x 2
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |