Re: Parsing of HEX bytes using PErl

2006-10-24 Thread John W. Krahn
Dharshana Eswaran wrote: > Hi all, Hello, > I am a student working on a project using Perl. > > My work is... > > I have few hex bytes as inputs for my program. Its a series of hex bytes. > for eg: 01 0a ab 2a 1c etc... Do you mean bytes, or hexidecimal strings? > Here each byte stands for s

Re: Fw: Reg:need to find the particular pattern in a line and assign to variables.

2006-10-24 Thread John W. Krahn
pradeep reddy wrote: > Hello all, Hello, > Iam new member to this group and also beginner to PERL. > Here is my question,plz let me know your inpus: > I have a PERL script which gives error report at the end. > Here is the output. > > cleartool: Error: Unable to create label "Pradeep" on > "/v

Fw: Reg:need to find the particular pattern in a line and assign to variables.

2006-10-24 Thread pradeep reddy
Hello all, Iam new member to this group and also beginner to PERL. Here is my question,plz let me know your inpus: I have a PERL script which gives error report at the end. Here is the output. cleartool: Error: Unable to create label "Pradeep" on "/vob/rootinclude/paer.c" version "/main/3". cl

Parsing of HEX bytes using PErl

2006-10-24 Thread Dharshana Eswaran
Hi all, I am a student working on a project using Perl. My work is... I have few hex bytes as inputs for my program. Its a series of hex bytes. for eg: 01 0a ab 2a 1c etc... Here each byte stands for some representation. I also have a data file in which all the representations are stored. For

Re: Jumping to inner loops

2006-10-24 Thread Rob Dixon
Luba Pardo wrote: > Dear all: > I need to write a script that, given that a statement in the "OUTER" > loop is > true goes immediately to the INNER loop and finishes it before iterates in > OUTER again. > The problem is that I do not how to ask the program to run the inner loop > once the statemen

RE: Worse than just a beginner

2006-10-24 Thread Charles K. Clarkson
Brian wrote: : I'm wondering if someone can do me an enormous favour and : write a cgi for me please, I just can't get my head around : the books I have, they might just as well be written in : Klingon. You want us to feed you for a day? Think about what needs

Re: Worse than just a beginner

2006-10-24 Thread Brian
Omega -1911 wrote: On 10/24/06, Brian <[EMAIL PROTECTED]> wrote: I'm wondering if someone can do me an enormous favour and write a cgi for me please, I just can't get my head around the books I have, Sounds like a homework assignment... Not at all , and just for the record, I am 50 years

Re: Worse than just a beginner

2006-10-24 Thread Omega -1911
On 10/24/06, Brian <[EMAIL PROTECTED]> wrote: I'm wondering if someone can do me an enormous favour and write a cgi for me please, I just can't get my head around the books I have, Sounds like a homework assignment... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Worse than just a beginner

2006-10-24 Thread Brian
I'm wondering if someone can do me an enormous favour and write a cgi for me please, I just can't get my head around the books I have, they might just as well be written in Klingon. I would like to be able to enter a number into a form. (eg 1234) This number would also be output to result.html

Re: Opening .dat file in perl

2006-10-24 Thread John W. Krahn
Goksie wrote: > Tommy Nordgren wrote: >>On 20 okt 2006, at 21.31, Goke Aruna wrote: >> >>>On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Goksie wrote: > >Can someone advice me on how i can open .dat file in perl script? open my $fh, '<', '00016367.DAT' or die "Cannot open '00

RE: Jumping to inner loops

2006-10-24 Thread Charles K. Clarkson
Luba Pardo wrote: : Example: once that the element h=0 from arra1 is found in : array2, then move to the inner loop for h to become h+2 : and not h+4. Then when the 4 consecutive elements in the : array 1are found in the array 2, then make h= h+4 in the : array1. Element

Re: Re: Opening .dat file in perl

2006-10-24 Thread Tom Phoenix
On 10/24/06, Goksie <[EMAIL PROTECTED]> wrote: Tommy Nordgren wrote: > This might occur because you are trying to print the file handle > instead of reading FROM it. print $fh; Yep, Tommy Nordgren nailed it. If you want to read binary data from a filehandle, you probably want to st

Jumping to inner loops

2006-10-24 Thread Luba Pardo
Dear all: I need to write a script that, given that a statement in the "OUTER" loop is true goes immediatly to the INNER loop and finishes it before iterates in OUTER again. The problem is that I do not how to ask the program to run the inner loop once the statement of the loop "OUTER" is true. E

Re: Opening .dat file in perl

2006-10-24 Thread Goksie
Tommy Nordgren wrote: > > On 20 okt 2006, at 21.31, Goke Aruna wrote: > >> On 10/20/06, John W. Krahn <[EMAIL PROTECTED]> wrote: >>> >>> Goksie wrote: >>> > Thanks all for the past help >>> > >>> > Can someone advice me on how i can open .dat file in perl script? >>> >>> open my $fh, '<', '00016367

Re: Dynamical our/my/local

2006-10-24 Thread Oleg V. Volkov
"Dr.Ruud" <[EMAIL PROTECTED]> wrote: >> Alias::attr (and, as far as I understand all other >> modules that perform namespace/glob tricks) operate >> exclusively on globals. > Did you check Data::Alias too? Really nice, but, alas, no Win32 and that's where I run most of my stuff. It also wouldn be

Re: File download in background.

2006-10-24 Thread Beginner
On 24 Oct 2006 at 12:12, Beginner wrote: Sorry going to top post as I made a mistake. I was doing a straight print and that was why the file was was being displayed. Apologies. Dp. > Hi All, > > I posted this to this list as it's as much a fork() issue as a CGI > one. Hope I've done the righ

File download in background.

2006-10-24 Thread Beginner
Hi All, I posted this to this list as it's as much a fork() issue as a CGI one. Hope I've done the right thing. I am trying to display a html page and at the same time download a file from a multi-part form. The files are quite large to I wanted to minimise the time it took for the browser to

Re: Dynamical our/my/local

2006-10-24 Thread Dr.Ruud
"Oleg V. Volkov" schreef: > Alias::attr (and, as far as I understand all other > modules that perform namespace/glob tricks) operate > exclusively on globals. Did you check Data::Alias too? >From the examples: alias my $fi = $self->{FrobnitzIndex}; This works a bit like for my $fi ($sel

Re: count the characters between the matches

2006-10-24 Thread Dr.Ruud
"zhihua li" schreef: > I'm curious if there's any smart code to calculate the "distance" > between the matches in a text. > Suppose I have a text like this: > syhk...yes...uhg;ka=...yes...yiealg.yes...ghe;a...yes... > Apparently it has multiple words of "yes". > I'd like to know how many

Re: Dynamical our/my/local

2006-10-24 Thread Oleg V. Volkov
"Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >> > Provide code, so we can guess better. >> Here's example how I use it in functions: >> sub add_service{ >> our($login, $type_id, $account_id, $ap_id, $rule); > Please DON'T! > You DO want to use >my ($login, $type_id, $account_id, $ap_id, $ru

Re: Unitialised value in String

2006-10-24 Thread Rob Dixon
Richard Luckhurst wrote: Hi All I am a perl newbie. I have a small perl script that is actually a cgi-bin script. I am told that until a recent server change over it ran fine however now it produces no output. I have tried running it from a command line and redirecting the input it would have r

Re: count the characters between the matches

2006-10-24 Thread Rob Dixon
zhihua li wrote: > hi netters, > > I'm curious if there's any smart code to calculate the "distance" > between the matches in a text. > Suppose I have a text like this: > syhk...yes...uhg;ka=...yes...yiealg.yes...ghe;a...yes... > Apparently it has multiple words of "yes". I'd like to kn