[ic] MD5 hex problem. Help me please

Kevin Walsh interchange-users@interchange.redhat.com
Wed May 29 13:33:00 2002


> > > I've got problem with MD5 again.
> > > with
> > > -----
> > > UserTag md5hash Interpolate
> > > UserTag md5hash HasEndTag
> > > UserTag md5hash Routine <<EOF
> > > use Digest::MD5;
> > > sub {
> > > my $val = shift;
> > > my $hash = MD5->hexhash($val);
> > > return $hash;
> > > }
> > > EOF
> > > -----
> > > in ic error.log I found:
> > > 
> > > UserTag 'md5hash' code is not a subroutine reference
> > > > In line 10 of the configuration file 'usertag/md5hash.tag':
> > > > UserTag md5hash Routine <<EOF
> > > 
> > > Any idea where I wrong?
> > > Thank to everybody
> > > 
> > You probably have whitespace after the 'EOF' on the last line.
> > 
> No, I've got no white space
> Any other idea?
>
Double-check to make sure.  'EOF ' is different from 'EOF' and will
cause the error you have reported.  Note the space in my example.
Check that your 'EOF' reads as exactly three characters.

Another cause could be Microsoft nastiness, such as a CR character
at the end of each line.  If you are uploading your tags from an
MSDOS-related box then don't.  If have no choice then make sure you
transfer files in ASCII mode.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/