Re: timer/display-DISPLAY WORKING;THANKS

2001-07-10 Thread Rogério Brito
On Jul 09 2001, [EMAIL PROTECTED] wrote: > while (1) { > print $chars[$i++], "\r"; > select(undef, undef, undef, PAUSE); > } The index of the array/list should be ($i++)%@chars instead, so that it does not get out of bounds. []s, Roger... -- =-=-=-=

Re: timer/display

2001-07-10 Thread Jos I. Boumans
quick glance tells me you should be using $i iinstead of $_ - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: "Chas Owens" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 4:11 PM Subject: Re: timer/display &g

Re: timer/display

2001-07-10 Thread Tyler Longren
n" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:19 AM Subject: Re: timer/display > On Jul 10, Tyler Longren said: > > >#!/usr/bin/perl -w > >use strict; > >$| = 1; > >use Time::HiRes qw(usleep); > >my @windmill=

Re: timer/display

2001-07-10 Thread Tyler Longren
I have tried that. Here's the error I get from that: Use of uninitialized value in modulus (%) at ./test.pl line 7. Tyler - Original Message - From: "Chas Owens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 9:19 AM Subject

Re: timer/display

2001-07-10 Thread Jeff 'japhy' Pinyan
On Jul 10, Tyler Longren said: >#!/usr/bin/perl -w >use strict; >$| = 1; >use Time::HiRes qw(usleep); >my @windmill=("\\", "|", "/", "-"); >for(my $i=0; $i <= 1; $i++) { >print "$windmill[$_ & 3]\r"; >usleep(5); >} > >I get this error: >Use of uninitialized value in bitwis

Re: timer/display

2001-07-10 Thread Chas Owens
_ & 3]\r"; > usleep(5); > } > > I get this error: > Use of uninitialized value in bitwise and (&) at ./test.pl line 7. > > Thanks everyone, > Tyler > > - Original Message - > From: "Chas Owens" <[EMAIL PROTECTED]&

Re: timer/display

2001-07-10 Thread Tyler Longren
ginal Message - From: "Chas Owens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 4:42 PM Subject: Re: timer/display > On 09 Jul 2001 17:39:15 -0400, Chas Owens wrote: > > On 09 Jul 2001 14:03:47 -0700, [EMAIL PROTECTED] wrote: > >

Re: timer/display-DISPLAY WORKING;THANKS

2001-07-09 Thread Jeff 'japhy' Pinyan
On Jul 9, [EMAIL PROTECTED] said: >I don't fully understand why yet; that select(undefPAUSE) thing eludes >me, but I'll hit the books tonight. > select(undef, undef, undef, PAUSE); The docs for 4-arg select() have an example which you should take a look at. 4-arg select() is used for

RE: timer/display-DISPLAY WORKING;THANKS

2001-07-09 Thread Wagner-David
In this case you are just using the select for the time out and not concerned about the other actions of select. Wags ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 16:27 To: [EMAIL PROTECTED] Subject: Re: timer/display

Re: timer/display-DISPLAY WORKING;THANKS

2001-07-09 Thread GoodleafJ
eff 'japhy' Pinyan To: [EMAIL PROTECTED] Subject:

Re: timer/display

2001-07-09 Thread Chas Owens
On 09 Jul 2001 17:39:15 -0400, Chas Owens wrote: > On 09 Jul 2001 14:03:47 -0700, [EMAIL PROTECTED] wrote: > > This will sound silly. > > > > I need to come up with a simple status indicator of some sort. I have in > > mind a "spinner." You've seen them before I'm sure, where there's a '-' > > th

Re: timer/display

2001-07-09 Thread Chas Owens
On 09 Jul 2001 14:03:47 -0700, [EMAIL PROTECTED] wrote: > This will sound silly. > > I need to come up with a simple status indicator of some sort. I have in > mind a "spinner." You've seen them before I'm sure, where there's a '-' > then it changes to '\' then '|' then '/' then '-' and so forth,

Re: timer/display

2001-07-09 Thread Christian Campbell
[EMAIL PROTECTED] wrote: > I need to come up with a simple status indicator of some sort. I have in > mind a "spinner." You've seen them before I'm sure, where there's a '-' > then it changes to '\' then '|' then '/' then '-' and so forth, so that it [...] Check this thread:

Re: timer/display

2001-07-09 Thread Jeff 'japhy' Pinyan
On Jul 9, [EMAIL PROTECTED] said: >I need to come up with a simple status indicator of some sort. I have in >mind a "spinner." You've seen them before I'm sure, where there's a '-' >then it changes to '\' then '|' then '/' then '-' and so forth, so that it >appears to be spinning. Actually, I rea