Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Stephen Biggs" To: cygwin AT cygwin DOT com Date: Fri, 21 Nov 2003 17:42:43 +0200 MIME-Version: 1.0 Subject: Re: Perl PrivoxyWindowOpen missing? Message-ID: <3FBE4E93.14689.E19312@localhost> In-reply-to: <3FBE28A6.693146CA@dessent.net> Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body On 21 Nov 2003 at 7:00, Brian Dessent wrote: > Stephen Biggs wrote: > > > > This is actually due to a bug/config error in Privoxy. One of its popup > > > blocking filters changes all occurances of Javascript "open()" in page > > > sources to the one you're seeing. Unfortunately, that action was > > > wrongfully applied to your URL. I believe this selectivity has been > > > much improved, so you should definitely grab the latest actionsfile from > > > the site (or CVS.) This doesn't have anything to do with Cygwin or > > > Perl, they're both innocent. > > > I am a bit confused. I am running this script strictly command-line in > > Cygwin. There is no URL or browser activity involved. While I might > > have Privoxy installed, it seems to me that the actual call in Perl is > > not getting interpreted; that is, the call is stopped by Perl before it > > even gets to Privoxy due to some missing library interface. > > > > Or, Perl calls Javascript as part of its operation? What am I missing > > here? > > When you downloaded the script from the web it was passed through > Privoxy, which was unable to distinguish it from a html file and thus > applied its filters. If you disable Privoxy and download another copy > you'll find that all of the "PrivoxyWindowOpen" calls are really calls > to "open". Alternatively, you could just do: > > perl -i.bak -pe 's/PrivoxyWindowOpen/open/g' filename.pl > > This will replace all occurances in the file (making a .bak backup in > case something's wrong.) > > Brian > Ahh... understood, finally... Thanks, Brian. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/