This line:
use Scalar::Util qw(weaken);
Is throwing this error, in the browser:
Weak references are not implemented in the version of perl at /usr/loc +al/share/perl/5.8.8/CGI/FormBuilder.pm line 15 BEGIN failed--compilation aborted at /usr/local/share/perl/5.8.8/CGI/F +ormBuilder.pm line 15.
I'm installing an application on a brand new server, just used cpan to install a dozen or so dependencies. CGI::FormBuilder required force install to make it go. The install attempt gave me a very similar error message.

I'm using perl v5.8.8 and a Debian install on both the other machines this application was developed on, but without encountering this issue. Can anyone with some more experience with CGI::FormBuilder and Scalar::Util give me a clue how to work past this, please?

Thanks,
-- Hugh

UPDATE:

Well using apt-get install to grab the libcgi-formbuilder-perl package did not change the error at all.

But commenting out the 'weaken' inclusion did move me past that error. I wonder when that will come back to bite me.

if( $lal && $lol ) { $life++; }

In reply to CGI::FormBuilder and unimplemented weak references; Ideas? by hesco

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.