Re: Another snippet explanation, please

2007-07-06 Thread Monty
Aaah...that does make more sense. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Another snippet explanation, please

2007-07-06 Thread John W. Krahn
Monty wrote: I've come across the following bit of code: print PIPE "This is line number $_\n" and $count++; This will only increment $count if print returned a "true" value. How does this differ from: print PIPE "This is line number $_\n"; $count++; This will always increment $count.

Another snippet explanation, please

2007-07-06 Thread Monty
I've come across the following bit of code: print PIPE "This is line number $_\n" and $count++; How does this differ from: print PIPE "This is line number $_\n"; $count++; Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.per