Re: Index not incrementing

2008-09-20 Thread John W. Krahn
AndrewMcHorney wrote: Hello Hello, I am working on a perl script which is strictly loops for performance testing. For some reason the index for the quarterback index is not incrementing. That is because it is outside of the while loops. Also sometimes I am getting an error message about t

Re: Index not incrementing

2008-09-20 Thread Mr. Shawn H. Corey
On Sat, 2008-09-20 at 13:08 -0700, AndrewMcHorney wrote: > Hello > > I am working on a perl script which is strictly loops for performance > testing. For some reason the index for the quarterback index is not > incrementing. Also sometimes I am getting an error message about the > last right br

Re: Index not incrementing

2008-09-20 Thread Jack Gates
On Saturday 20 September 2008 04:08:20 pm AndrewMcHorney wrote: > Hello > > I am working on a perl script which is strictly loops for performance > testing. For some reason the index for the quarterback index is not > incrementing. Also sometimes I am getting an error message about the > last right

Re: Index not incrementing

2008-09-20 Thread Jack Gates
On Saturday 20 September 2008 04:08:20 pm AndrewMcHorney wrote: > $NumberQuarterbacks = 32; > $NumberRunningBacks = 60; > > $QuarterbackIndex = 0; > > while ($QuarterbackIndex < $NumberQuarterbacks) > { >      $Runningback1Index = 0; >      while ($RunningBack1Index < $NumberRunningBacks) >      {

Index not incrementing

2008-09-20 Thread AndrewMcHorney
Hello I am working on a perl script which is strictly loops for performance testing. For some reason the index for the quarterback index is not incrementing. Also sometimes I am getting an error message about the last right bracket. I have looked at this for a while and cannot see why this is

Re: discard sessions when close browser

2008-09-20 Thread Raymond Wan
Hi, I'm not an AOL web mail user, but I think I know what you mean. One way I know is to do it the "client way" with cookies. I've done some server development and I set an explicit expiry time. But according to this: http://www.cookiecentral.com/faq/ if you scroll down to "Expires", it

Re: Trying to modify Perl script

2008-09-20 Thread John W. Krahn
Stephen Reese wrote: I found a Perl script that parses Cisco ACL logging format and I would like to modify it to parse the IPS format that Cisco uses. I have made changes to the expression that picks up the Rule and the script still runs but there isn't any useful output. Any recommendations woul

Re: Variable passing to functions like read() / sysread() etc

2008-09-20 Thread Peter Scott
On Fri, 19 Sep 2008 06:58:33 -0700, wikenfalk wrote: > When using read/sysread you pass variables like $fo->sysread($buf, > $buflen), and the data is returned in buf. > This is magic to me, normally you ought to call sysread like $fo- >>sysread(\$buf,$buflen), passing a reference/pointer to the bu

Re: discard sessions when close browser

2008-09-20 Thread practicalperl
On Thu, Sep 18, 2008 at 4:49 PM, Raymond Wan <[EMAIL PROTECTED]> wrote: > > Hi, > > Sorry, I might be missing something, but when the client closes the browser > window, no message is sent to the web server. So, I think the server has no > way of knowing that a window has closed. The best alterna

Re: how to produce random dates

2008-09-20 Thread Mr. Shawn H. Corey
On Sat, 2008-09-20 at 03:53 -0700, John W. Krahn wrote: > itshardtogetone wrote: > > Hi, > > Hello, > > > How do I randomly produce a date between 1st Jan 1960 to 31th December > > 1985. It must be able to show the day month year. > > I only know how to produce a random number between 1960 to 198

Trying to modify Perl script

2008-09-20 Thread Stephen Reese
I found a Perl script that parses Cisco ACL logging format and I would like to modify it to parse the IPS format that Cisco uses. I have made changes to the expression that picks up the Rule and the script still runs but there isn't any useful output. Any recommendations would be great. Here's wha

Re: how to produce random dates

2008-09-20 Thread John W. Krahn
itshardtogetone wrote: Hi, Hello, How do I randomly produce a date between 1st Jan 1960 to 31th December 1985. It must be able to show the day month year. I only know how to produce a random number between 1960 to 1985 using rand like this : my $year = int (rand 26) + 1960; use Time::Local

how to produce random dates

2008-09-20 Thread itshardtogetone
Hi, How do I randomly produce a date between 1st Jan 1960 to 31th December 1985. It must be able to show the day month year. I only know how to produce a random number between 1960 to 1985 using rand like this : my $year = int (rand 26) + 1960; Thanks