Counting (easy!)

2003-11-12 Thread Trent Rigsbee
I'm sure this is easy but I'm a newbie. I was doing control statements (for, 
while,etc.) like this:

for ($count = 1; $count = 5; $count++) {
 print $count\n;
}
What I wanted to do was to make each number appear in sequence like you see 
in a countdown (or up, in this case) instead of all on the screen at once. 
I've tried using sleep but I'm not getting anywhere with it. Any ideas? 
Also, any methods or ideas on how to approach creating code in general? For 
example, what's the thought process for trying to do what I want to do? I've 
tried pseudo code and it's helped some but then I hit the wall and don't how 
to go further. Thanks!

_
Frustrated with dial-up? Get high-speed for as low as $26.95.  
https://broadband.msn.com (Prices may vary by service area.)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Counting (easy!) (YES!!)

2003-11-12 Thread Trent Rigsbee
I think I figured it out! A FIRST!!

for ($i = 1; $i = 5; $i++){
sleep 1;
print $i\n;
}
I prints out like this: 1...2...3...4...5

YES!!

Thanks everyone! :-)



From: Trent Rigsbee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Counting  (easy!)
Date: Thu, 13 Nov 2003 01:05:37 +
I'm sure this is easy but I'm a newbie. I was doing control statements 
(for, while,etc.) like this:

for ($count = 1; $count = 5; $count++) {
 print $count\n;
}
What I wanted to do was to make each number appear in sequence like you see 
in a countdown (or up, in this case) instead of all on the screen at once. 
I've tried using sleep but I'm not getting anywhere with it. Any ideas? 
Also, any methods or ideas on how to approach creating code in general? For 
example, what's the thought process for trying to do what I want to do? 
I've tried pseudo code and it's helped some but then I hit the wall and 
don't how to go further. Thanks!

_
Frustrated with dial-up? Get high-speed for as low as $26.95.  
https://broadband.msn.com (Prices may vary by service area.)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Send a QuickGreet with MSN Messenger 
http://www.msnmessenger-download.com/tracking/cdp_games

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using Perl with PC Anywhere?

2003-11-06 Thread Trent Rigsbee
Hi! Newbie question here but is it possible to use PC Anywhere with Perl? If 
so, how? What kinds of things can you do? This question came up in a 
conversation with some friends and so I thought I'd ask the group. I'm sure 
I'm a typical newbie in that I'm having trouble sensing the possibilities 
that one can do with a language.

_
Compare high-speed Internet plans, starting at $26.95.  
https://broadband.msn.com (Prices may vary by service area.)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


After Beginning Perl?

2003-09-01 Thread Trent Rigsbee
Hi! I've completed Beginning Perl by Simon Cozens. What do you recommend 
as my next book? I'd like to tackle Networking Programming with Perl  by 
Lincoln Stein or Win32 Perl Scripting by Roth but I'm not sure if I'm 
ready for these. Should I go for something like Learning Perl or 
Programming Perl before I learn sockets and Win32 or is it ok to go for 
it? Thanks!

Siki

_
MSN 8: Get 6 months for $9.95/month. http://join.msn.com/?page=dept/dialup
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]