On Jan 8, Lance Prais said:

>for(my $i=0; $i<22; $i++){<WORKFLOW>};  #This will put you at row 23.----

>  $_=<WORKFLOW>;
>  my $line=$_;
>  my $nextline=$line++;

$line is a line of text from the file.  Adding 1 to it will not make it
the next line of the file.

Also, $this = $that++ doesn't do what you might think:

  $that = 10;
  $this = $that++;
  print "this=$this, that=$that\n";  # this=10, that=11

To get the next line, just say:

  $nextline = <WORKFLOW>;

And why are you using $_ at all?

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


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

Reply via email to