in reply to Re: Re: Creating HREF links on radio group items
in thread Creating HREF links on radio group items

I simplified an item line,

"B" => a({href=>"/test.html";},"B"),

but I get the error:

syntax error at /usr/local/apache/cgi-perl/work/script.pl line 95, at EOF

Line 95 is the line I give above.

Any idea why I'm getting this error?
  • Comment on Re: Re: Re: Creating HREF links on radio group items

Replies are listed 'Best First'.
Re: Re: Re: Re: Creating HREF links on radio group items
by Hero Zzyzzx (Curate) on Jun 21, 2002 at 20:12 UTC

    That's because your call to a() is wrong, it should be:

    a({-href=>"/test.html"},"B")
    Note the addition of the the - and the removal of the ;
    Goes to show what happens when I just cut-and-paste code, without really reading it. . .

    -Any sufficiently advanced technology is
    indistinguishable from doubletalk.

      Thanks. The dash is optional I guess since it appears to work without it. I`ll try both ways.
Re: Re: Re: Re: Creating HREF links on radio group items
by Anonymous Monk on Jun 21, 2002 at 20:11 UTC
    got it. the semicolon should not be there.