RE: Incrementing count

2004-03-29 Thread Timothy Donahue
Or this can be further simplified: while () { $counter += 20; } The += operator is equivilent to saying add the value then assign it to the variable. Tim Donahue > -Original Message- > From: Chance Ervin [mailto:[EMAIL PROTECTED] > Sent: Monday, March 29, 2004 1:03 PM > To: [EMAIL

Testing for STDIN

2004-02-25 Thread Timothy Donahue
I have a program that I am writing that I need to accept input from either STDIN (for file redirections or pipes) or from the command-line. The program manipulates email addresses for our mail servers, so I should have the option to do either 'email_add [EMAIL PROTECTED]' or 'email_add < /path/to/f