in reply to Re: Re: Re: How to increment a sequence number for evert instance of a value?
in thread How to increment a sequence number for evert instance of a value?

Ok this is what I came up with but when I print the output to the screen $invseq has no value. Can anyone see what am I doing wrong....it looks alright to me. Am I using the hash incorrectly?
if ($flag21 == 1) { foreach $num(@number) { if (($num) eq ($rp1)) { $invseq = $seqi{$rp1}; $invseq = $invseq + 1; $seqi{$rp1} .= $invseq; } else { $seqi{$rp1} .= 1; $invseq = $seqi{$rp1}; push @number, $rp1; } } }
  • Comment on Re: Re: Re: Re: How to increment a sequence number for evert instance of a value?
  • Download Code