in reply to http interpolation

If the tilde is being "interpolated" somehow it's the redirect() subroutine that's doing it and so your first "this works" example would have the same behavior as the "doesn't work" example.

In any case ... where are your quotes around the URL for the second two examples? What's with the stray <br>s? Are you using warnings and stricture?

Replies are listed 'Best First'.
Re^2: http interpolation
by perlboer (Acolyte) on Jul 01, 2005 at 14:09 UTC
    Duff,
    the br was a typo, i updated the code.
    I use strict.
    My scripts works like:
    <a href="my.cgi?gotoSite=1">CVS</a>
    Hereby the whole code, sorry if I was too reserved with information, I thought "small question":
    use strict; use CGI qw/:standard/; my $debug = 0; # -|Main|------------------------------------------------------------- +--------- # Pre : $ARGV[0] from "script.pl # Post: # -------------------------------------------------------------------- +--------- print redirect( $ARGV[0]);
    Kind regards,
    Perlboer
      You seem confused. This is a CGI script, since you are using CGI.pm, but you are attempting to access @ARGV, which probably isn't set by your CGI server. Maybe you should try "param" or something.