Re: Sysread and syswrite

2002-05-22 Thread ChaoZ Inferno
Subject: Re: Sysread and syswrite > > On Wednesday, May 22, 2002, at 01:07 , ChaoZ InferNo wrote: > [..] > > I want to print out a variable to my client over the internet, but would > > like to use syswrite and sysread would help to reduce mistakes in EOF > > charact

Re: Sysread and syswrite

2002-05-22 Thread ChaoZ InferNo
stuff, kindly advice? Thanks! >From: Felix Geerinckx <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Sysread and syswrite >Date: 22 May 2002 08:21:25 - > >on Wed, 22 May 2002 08:07:07 GMT, [EMAIL PROTECTED] (Chaoz >Inferno) wrote: > > > I want to p

Sysread and syswrite

2002-05-22 Thread ChaoZ InferNo
Hi all, I am having some problem with sysread and syswrite. Example:- I want to print out a variable to my client over the internet, but would like to use syswrite and sysread would help to reduce mistakes in EOF characters. #!/usr/bin/perl my $buffer; my $test = "hello, how do u do"; #readi

Regular expression again 8P

2002-05-20 Thread ChaoZ InferNo
Hi all, would like to consult the perl gurus on the below:- my $var=" GET http://us.a1.yimg.com/us.yimg.com/i/mntl/lnch/britney.jpg HTTP/1.0 Host: us.a1.yimg.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 Accept: text/xml, application/xml, appli

Re: regular expression

2002-05-17 Thread ChaoZ Inferno
quot;David Gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "'ChaoZ InferNo'" <[EMAIL PROTECTED]>; "'Shawn'" <[EMAIL PROTECTED]> Sent: Friday, May 17, 2002 10:16 PM Subject: RE: regular expression > > > ... > > f

truncating carrier return character(s)

2002-05-17 Thread ChaoZ InferNo
It seems that when i am working with network programming, the input from the client will contain carrier return characters which the server interpreted as 2 carrier-return, how do i truncate the end carrier return characters? kindly advice... ... thanks!

regular expression

2002-05-17 Thread ChaoZ InferNo
hi all, i am working to split the data in my array as follows but ended up clueless, hoope some of u can help. @text # contains values of a phone directory $text[0] contains john=012345678 $phone1 = ? let say i wanted to grab just the values'012345678'. how should i go on truncating the value

Re: graphs and charts question

2002-04-18 Thread ChaoZ InferNo
how come our piece of work seems so familiar to my piece of assignment? 8) - #!/usr/bin/perl -w use strict; use CGI; use GD::Graph::bars; my $q = new CGI; my $graph = new GD::Graph::bars(400, 300); #graph type and size my @data = ( # your database array [qw(Mon Tue

Help on GD Graph

2002-04-13 Thread ChaoZ InferNo
Hi, I am supposed to use the graph to generate the results of a set of questions which I asked my clients. I am able to generate the graph using the GD::Graph Module without any trouble. But the thing is the legend. I am squeezing the main results into one common graph BUT the idea is that

Problem with GD graph module

2002-04-13 Thread ChaoZ InferNo
Hi, I am drawing out graphs using GD graph modules and I am having problems on labelling every individual bars if possible. Do i use GD::Text to generate like a horizontal label on the graph? Or is it one of the GD:graph limitation whereby I cannot add anything onto the graph itself? Seems lik

Re: Windows 98 - PWS and Perl

2002-04-10 Thread ChaoZ Inferno
Hi Kamali, I was encountering the same problem, till one of the gurus in this forum adviced me to change to Apache. I am using Apache 1.3.24 i think and it's working fine as a fiddle with no bugs encountered so far in my cgi adventure. U can try installing it as well, I am running it on Win 98,

How to quote my param in a single step?

2002-04-10 Thread ChaoZ Inferno
Hi, I am having a slight problem whereby I need to quote the individual params of my cgi string. I need to configure 2 steps in order to retrieve the params of my cgi-string and then quote it in ' ' my $sex = $q->param("sex_question"); $sex = qq('$sex'); print "$sex"; Result : 'male' or '

Problem in retrieving param from cookie

2002-04-10 Thread ChaoZ InferNo
Hi, Let's say if I create a cookie with $questions and $answers value pairs where $questions consists of q1, q2, q3, q4, q5, while $answers consists of a1, a2, a3, a4, a5. I have no problem in printing out every value of a cookie by using my %answers = $q->cookie("my_cookie"); if(%answers)