----- Original Message ----- From: "Bob Showalter" <[EMAIL PROTECTED]> To: "'Lance Prais'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > -----Original Message----- > > From: Lance Prais [mailto:[EMAIL PROTECTED]] > > > > for(my $i=0; $i<22; $i++){<EMAILMGR>}; #This will put > > you at row 23.---- > > A more "perlish" way to read 22 lines would be: > <EMAILMGR> for 1..22;
This is fantastic. Short and simple ! > > $_=<EMAILMGR>; > > my $line=$_; > > my $nextline=$line++; > > The expression $line++ is destroying the previous value of > $line as read from the file, and setting it to the numeric > value 1. What are you trying to accomplish here? To the best of my recollection, with regards to $nextline=$line++; $nextline will hold the value of $line and not $line++, I believe what the original poster want is $nextline= ++$line; _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]