in reply to Re: http interpolation
in thread http interpolation

Gellyfish,
Examine this case, I think I need to parse the $ARGV[0] before the "print redirect"
That's what you mean ?
Perlboer

Replies are listed 'Best First'.
Re^3: http interpolation
by gellyfish (Monsignor) on Jul 01, 2005 at 14:34 UTC

    No what I mean is that it is not perl that is doing the substitution of the '~' it is the shell, if you print $ARGV[0] as the first thing in your program you will see what is happening. You need to call your program like

    program.pl 'http://www.xs4all.nl/~werksman/webmees/index.html'
    or
    program.pl http://www.xs4all.nl/\~werksman/webmees/index.html
    to prevent the '~' from being substituted for the path to your home directory.

    /J\