Majian wrote:
Dear list:
Hello,
I have a question on learning Perl . Please give me a help .
The problem is :
How can I split a string into chunks of size n bytes?Like this :
#!/usr/bin/perl
my $string = "1234567890abcdefghijABCDEFGHIJK";
my $n = 2;# $n is group size.
my @groups =
At 9:35 AM +0800 10/21/09, Majian wrote:
Dear list:
I have a question on learning Perl . Please give me a help .
The problem is :
How can I split a string into chunks of size n bytes?Like this :
#!/usr/bin/perl
my $string = "1234567890abcdefghijABCDEFGHIJK";
my $n = 2;# $n is group siz
Dear list:
I have a question on learning Perl . Please give me a help .
The problem is :
How can I split a string into chunks of size n bytes?Like this :
#!/usr/bin/perl
my $string = "1234567890abcdefghijABCDEFGHIJK";
my $n = 2;# $n is group size.
my @groups = unpack "a$n" x (length( $st
y %request = ( countryCode => 'FR', Number => '38488985771' );
my $answer = $checkVat->(%request);
This works perfectly fine until I am in an environment where I am forced to
use a proxy server. as I end up getting the same (no rout to host) reply I
get when just t
Mat Harris wrote:
On Mon, Feb 17, 2003 at 05:34:23 +0530, Ramprasad wrote:
talk about reinventing the wheel :-O
Now when you have an excellent tool like squid why would anyone go to
write his own proxy
I want to be able to use a php webpage to authenticate the user to make it
as transparen
On Mon, Feb 17, 2003 at 05:34:23 +0530, Ramprasad wrote:
> talk about reinventing the wheel :-O
>
>
> Now when you have an excellent tool like squid why would anyone go to
> write his own proxy
>
I want to be able to use a php webpage to authenticate the user to make it
as transparent as possi
Mat Harris wrote:
i am trying to write a mini proxy server to authenticate and run some other
checking on http requests before they are passed to a squid server.
I have got the following program which works for very basic requests but
cannot deal with forms or anything complex.
I will detail
i am trying to write a mini proxy server to authenticate and run some other
checking on http requests before they are passed to a squid server.
I have got the following program which works for very basic requests but
cannot deal with forms or anything complex.
I will detail the problems after
Hi all,
Firstly I wasn't able to test my perl scripts which used cgi/html/LWP cause
I wasn't able to connect to the net. I guess some settings have to be done
but not aware as to what...Please note that I am behind a proxy server.
Secondly I had this problem while installing modules
>-Original Message-
>From: Todd Wade [mailto:[EMAIL PROTECTED]]
>
>Go get the Perl Cookbook.
Very good advice in any weather. If you have not got it, get it, its a
fantastic book and I am always turning to it.
Harry
***
"Conan Chai" <[EMAIL PROTECTED]> wrote in message
003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1...
hi,
>how do i read in the request from a browser?
Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its
a little too complicated to discuss
hi,
how do i read in the request from a browser?
the browser is set to point to my proxy server. i have tried the following codes
while(sysread($client,$request,1024) > 0)
{
#do something
}
and
$bytes = sysread($client,$request,1024);
if($bytes > 0)
{
#do something
}
obvious
On Fri, Apr 19, 2002 at 07:40:35PM +1000, Conan Chai wrote:
> hi all,
> i'm writing a simple proxy server that listens on 2 ports, 1 for browser and another
>for admin client. the admin client is for administrative tasks such as adding new
>users and reseting downloaded byt
hi all,
i'm writing a simple proxy server that listens on 2 ports, 1 for browser and another
for admin client. the admin client is for administrative tasks such as adding new
users and reseting downloaded bytes. i'm currently using the IO::Select module but
this mode is blocking
14 matches
Mail list logo