Great Circle Associates Majordomo-Users
(August 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Work-around for Perl 5.005 problem
From: "Lachlan O'Dea" <lodea @ angmar . mel . cybec . com . au>
Date: Wed, 12 Aug 1998 15:33:00 +1000 (EST)
To: majordomo-users @ GreatCircle . COM

I don't follow this too closely, so apologies if someone has already
posted a solution to get Majordomo working with Perl 5.005.

Apparently Perl 5.005_02 is due out real soon and will work with
Majordomo. However, if you're already running Perl 5.005 or 5.005_01 and
Majordomo is not working, the following trivial patch to majordomo may
help. It stopped perl giving a SIGBUS on my FreeBSD 2.2.7-stable machine.
YMMV.

The patch just changes a regex from s/\s*$//g to s/\s*$//. If I understand
this correctly, the g modifier is superfluous anyway, and this is probably
why Perl is getting "confused".

===================================================================
Lachlan O'Dea <mailto:lodea@angmar.mel.cybec.com.au>
FreeBSD rocks! <http://www.freebsd.org/>
*** majordomo.orig	Wed Aug 12 15:11:12 1998
--- majordomo	Wed Aug 12 15:10:51 1998
***************
*** 175,181 ****
      $_ = &chop_nl($_);			# strip any trailing newline
      s/^\s*#.*//g;			# strip comments
      s/^\s*//g;				# strip leading whitespace
!     s/\s*$//g;				# strip trailing whitespace
      s/\\ /\001/g;			# protected escaped whitepace	
      @parts = split(" ");		# split into component parts
      grep(s/\001/ /, @parts);		# replace protected whitespace with
--- 175,181 ----
      $_ = &chop_nl($_);			# strip any trailing newline
      s/^\s*#.*//g;			# strip comments
      s/^\s*//g;				# strip leading whitespace
!     s/\s*$//;				# strip trailing whitespace
      s/\\ /\001/g;			# protected escaped whitepace	
      @parts = split(" ");		# split into component parts
      grep(s/\001/ /, @parts);		# replace protected whitespace with
Indexed By Date Previous: Returned mail: test-list... aliasing/forwarding loop broken
From: "Francis Peter Sainsbury (Frank)" <frank@eliz.tased.edu.au>
Next: how to store subscribers' names in the list file
From: Ng Fo <ngfo@HK.Super.NET>
Indexed By Thread Previous: Re: Returned mail: test-list... aliasing/forwarding loop broken
From: Mats Dufberg <Mats.Dufberg@abc.se>
Next: how to store subscribers' names in the list file
From: Ng Fo <ngfo@HK.Super.NET>

Google
 
Search Internet Search www.greatcircle.com