Re: trouble doing regex in file containing both ascii and binary content

2014-02-15 Thread Richie
@listserv.ActiveState.com <mailto:Perl-Win32-Users@listserv.activestate.com> *Subject:* trouble doing regex in file containing both ascii and binary content i cant figure out what im doing wrong here. i ran wireshark to monitor a small http client/server query/response. point of exerci

Re: trouble doing regex in file containing both ascii and binary content

2014-02-15 Thread sisyphus1
nts =~ /$str/){print "ok 1\n"} # To safeguard against presence of # metacharacters in $str: if($contents =~ /\Q$str\E/){print "ok 2\n"} ## Cheers, Rob From: Greg VisionInfosoft Sent: Saturday, February 15, 2014 9:41 AM To: Perl-Win32-Users@listserv.

trouble doing regex in file containing both ascii and binary content

2014-02-14 Thread Greg VisionInfosoft
i cant figure out what im doing wrong here. i ran wireshark to monitor a small http client/server query/response. point of exercise is to see exactly what an ajax response looks like (as im trying to learn ajax). unfortunately, the ajax response is sent from server in 'gzip' format (not plain text