Re: function reference errors...
From: Tad McClellan (tadmc_at_augustmail.com)
Date: 07/24/04
- Next message: Bob Walton: "Re: Another bizzare PerlScript/WSH problem"
- Previous message: Tad McClellan: "Re: regex search - suggestions?"
- In reply to: Sergei Shelukhin: "Re: function reference errors..."
- Next in thread: Anno Siegel: "Re: function reference errors..."
- Reply: Anno Siegel: "Re: function reference errors..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 24 Jul 2004 09:10:23 -0500
Sergei Shelukhin <raven_at@home.domonet.ru> wrote:
> Now, there's a version problem. I have ActiveState Perl installed both at
> work and at home; of course, both boxes are running Windows, and the script
> is working as it should.
Hmmm, I dunno what's going on with that...
> However, when I tried launching the script on my Linux box (Perl version is
> 5.005_03), it returned syntax errors near "})" (no additional comments, the
> error is just "syntax error").
> The line where the error resides is:
The line reported in the error message is NOT necessarily the
line where the error is.
The line reported is the line where perl _noticed_ that there
is a syntax error. The actual error may be several lines before
the line reported.
> $rows[$i] .=
> $props{DrawCallback}($$column{FieldName},$key,$$row{$$column{FieldName}});
^^
^^
Don't you need to _de_reference the coderef?
$props{DrawCallback}->( ... );
^^
^^
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
- Next message: Bob Walton: "Re: Another bizzare PerlScript/WSH problem"
- Previous message: Tad McClellan: "Re: regex search - suggestions?"
- In reply to: Sergei Shelukhin: "Re: function reference errors..."
- Next in thread: Anno Siegel: "Re: function reference errors..."
- Reply: Anno Siegel: "Re: function reference errors..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|