http://www.perlmonks.org?node_id=1089106


in reply to Perl script to add sock proxy settings for firefox

 $prefs->setIntPref('network.proxy.socks', 23.19.58.245)

Try to put that IP address in quotes; otherwise it produces something that is very likely to surprise you:

$ perl -wE 'say 23.19.58.245'
:�

Replies are listed 'Best First'.
Re^2: Perl script to add sock proxy settings for firefox
by Pretty_Boy_Hacka (Initiate) on Jun 07, 2014 at 16:49 UTC

    when I do it that way this is the error message I get:

    Proxy type 1 MozRepl::RemoteObject: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) nsIPrefBranch.setIntPref at ./Proxy_settings_vs_1_5.pl line 31.