Re: accessing the entire stream

2010-06-17 Thread Torsten Förtsch
On Thursday 17 June 2010 10:47:39 Chris Datfung wrote: > I want to manipulate various href links in the server response. I read in > the server response as follows: > > sub handler > { > my $f = shift; > unless ($f->ctx){ > while ($f->read(my $Buffer, BUFF_LEN)) { > if ($Buffer =~ m/

accessing the entire stream

2010-06-17 Thread Chris Datfung
I want to manipulate various href links in the server response. I read in the server response as follows: sub handler { my $f = shift; unless ($f->ctx){ while ($f->read(my $Buffer, BUFF_LEN)) { if ($Buffer =~ m/Logout/){ $Buffer =~ s/href="(.*?\?.*?)"/href="$1\&NewParameter=$