controlchan
Russ Allbery
rra at stanford.edu
Tue Jun 19 21:21:59 UTC 2001
Matthew C Aycock <matt at mathcs.emory.edu> writes:
> I am trying to use the current (as of this morning) cvs tree on Solaris
> 8 4/01 and I have having some problems with controlchan. I am using perl
> Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration
> on solaris 8 and getting a syntax error on controlchan:
> /news/bin/perl -cw /news/bin/controlchan
> syntax error at /news/bin/controlchan line 326, near "" $_\n" foreach "
> /news/bin/controlchan had compilation errors.
> The offending line in controlchan is:
> print LOGFILE " $_\n" foreach (@$headers, '', @$body, '');
> I know nothing about perl, so I thought I would ask the list. Is anyone
> else having similar problems?
That construct is pretty new (at least 5.005, maybe 5.6). I've now
changed it to:
foreach (@$headers, '', @$body, '') {
print LOGFILE " $_\n";
}
which will work with any version of Perl 5.
Thanks for the report!
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list