in reply to JavaScript in CGI

You've got conflicting quotes in the second statement, so just change the quoting construct e.g
print qq[<a href="javascript:history.back()">Back to the form</a>\n];
See perlop for more info on alternative quoting methods.
HTH

_________
broquaint

Replies are listed 'Best First'.
Re: Re: JavaScript in CGI
by Anonymous Monk on Oct 29, 2002 at 19:12 UTC
    broquaint, Thank you for your quick reply and answer!
    I am not familiar with the "qq" and puttin the brackets around the print statements. Are these some CGI functions and syntax?? How can I find more about this?
      qq has the same effect of double quotes. It may be used to tell perl to work as if the string inside the qq range is enclosed with '"'. The difference is that the charecter immediately following qq will be the delimiter, instead of '"'. You can use nearly anything that's not whitespace. If you use some kind of embracing character, such as '{', '[', or '(', then you have to close with the relevant closing brace.

      More operators such as qq are discussed in perlop, as was referenced by broquaint. To list a few:
      q - same effect as using single quotes (')
      qw - break words to a list (qw(foo bar) == ("foo","bar");)


      -nuffin
      zz zZ Z Z #!perl
        thanks(again)!