In message <9406242241.AA07871@easynet.crl.dec.com>,
Jim Reisert -- MLO5-2/36A -- DTN 223-5747 writes:
>I compiled Perl 5 for OSF and now MajorDomo v1.92 is starting to show signs
>of life.
Cool. Thanks for doing the perl 5 test.
>However, there seems to be some problem in the config_parse.pl file:
>[...]
>Final $ should be \$ or $name at /disks/sttng/majordomo-1.92/config_parse.pl
> line 1072, at end of string
>syntax error at /disks/sttng/majordomo-1.92/config_parse.pl line 1072,
> near ", "$""
It is bitching about:
if ( index($string, "$") < $[ ) {
# if there is no $ in the string, just return the string
return($string);
}
in the subroutine substitute_values. I guess it thinks it should be:
if ( index($string, "\$") < $[ ) {
# if there is no $ in the string, just return the string
return($string);
}
or
if ( index($string, '$') < $[ ) {
# if there is no $ in the string, just return the string
return($string);
}
See if the last alternative (with the single quotes) shuts it
up. That's what I have changed 1.93 to use. If it doesn't work try the
"\$" alternative, and let me know.
>Final $ should be \$ or $name at /disks/sttng/majordomo-1.92/config_parse.pl
> line 1085, at end of string
>syntax error at /disks/sttng/majordomo-1.92/config_parse.pl line 1085,
> near "=~ s/\002/$/"
>syntax error at /disks/sttng/majordomo-1.92/config_parse.pl line 1088,
> near "}"
>554 "|/disks/sttng/majordomo-1.92/wrapper majordomo"...
> unknown mailer error 255
Its complaining about this segment of code:
# replace the escaped $'s
$string =~ s/\002/$/;
I have changed this to be:
# replace the escaped $'s
$string =~ s/\002/\$/;
>What's interesting is there is this comment in the code:
>
>"# BUG the string \$ can't be embedded, but I see no reason it should
> # be needed"
Not particularly interesting, it just means that any text that attempts
to pass \$ though the substitution routine will have the \$ changed
into a $. As I said in the comment, I can't think of any reason anybody
would want to pass \$ though, but I am sure somebody will, that's why
it is a bug 8-).
-- John
John Rouillard
Senior Systems Consultant (SERL Project) University of Massachusetts at Boston
rouilj@cs.umb.edu (preferred) Boston, MA, (617) 287-6480
==============================================================================
My employers don't acknowledge my existence much less my opinions.
References:
|
|