in reply to [untitled node, ID 214828]
Single quotes mean a literal string which is exactly what you got in the second case. In the first case, Perl interprets it as perl code. This is the error I get when running the snippet:print redirect("$referring_url&alert=3");
With Perl, it you get a "500 Server Error", it means that the script died. You should look in the web server error log, or run the script from the command line, to figure out why it died.Operator or semicolon missing before &variable at -e line 1. Ambiguous use of & resolved as operator & at -e line 1. Can't modify bitwise and (&) in scalar assignment at -e line 1, near " +value)"
|
|---|