Item716: Ambigous print in CompareRevisionsAddOn

Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: CompareRevisionsAddOn
Reported By: GilmarSantosJr
Waiting For:
Last Change By: GilmarSantosJr
I was testing CompareRevisionsAddOn and I got this line at error.log:

compare: print() on unopened filehandle end_html at /tmp/trunk/core/lib/Foswiki/Contrib/CompareRevisionsAddOn/Compare.pm line 288

In that line we read:

    print CGI::end_html;

It seems that perl thinks CGI::end_html is a filehandle... adding parenthesis solves the issue:

    print CGI::end_html();

-- GilmarSantosJr - 09 Jan 2009

ItemTemplate edit

Summary Ambigous print in CompareRevisionsAddOn
ReportedBy GilmarSantosJr
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component CompareRevisionsAddOn
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:8369aa382572 distro:2f33d81f0d3b
TargetRelease n/a
ReleasedIn
Topic revision: r4 - 10 Jan 2009, GilmarSantosJr
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License