http://qs1969.pair.com?node_id=11137529


in reply to Re^5: Escape user name and password in LWP proxy call.
in thread Escape user name and password in LWP proxy call.

What if it is there in the variables which has value taken from file.
so if variable has prod\user, to interpolate i would need to use double quotes in the url, like "${user}:", isn't it.

Replies are listed 'Best First'.
Re^7: Escape user name and password in LWP proxy call.
by hippo (Bishop) on Oct 14, 2021 at 21:25 UTC

    Still works fine:

    use strict; use warnings; use URI::Escape; use Test::More tests => 1; my $user = 'prod\user'; my $have = uri_escape ("${user}:"); my $want = 'prod%5Cuser%3A'; is $have, $want;

    Why don't you provide an SSCCE?


    🦛