Re: function reference errors...

From: Tad McClellan (tadmc_at_augustmail.com)
Date: 07/24/04


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


Relevant Pages

  • Re: Script errors in IE6
    ... > gave me for Windows Script 5.6 is for Windows 98 and I am running Windows ... Let me which one to download since I am running Windows XP SP2. ... >> any other programs that are capable of blocking pop-ups. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Dynamic Form Question
    ... he/she has worked with and then to rank them on certain parameters. ... On form1 there are six free text boxes where the user can enter the ... using the following script: ... sqlString = "UPDATE Selection SET ...
    (microsoft.public.scripting.vbscript)
  • Dynamic Form Question
    ... he/she has worked with and then to rank them on certain parameters. ... On form1 there are six free text boxes where the user can enter the ... using the following script: ... sqlString = "UPDATE Selection SET ...
    (microsoft.public.scripting.vbscript)
  • Re: Newby questions...please be kind
    ... I use NFS between SuSE boxes. ... remote home for myself and wife, ... To execute a script file you should first change its execute bit either ...
    (alt.os.linux.suse)
  • Is this a Scripting Problem?
    ... When I then Click on it, the status bar changes to 'DONE', and yet, ... its clear that the script did not ... general security set at 'Medium'. ... running Windows ME. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)