Hi, blacknight.
In case the Modern::Perl error is still occurring, try the following to produce the results you wanted w/o "quotes":
use strict; use warnings; my %hash; do { chomp; $_ = qq|$_.$hash{$1}| if /(ID=.+)$/ and ++$hash{$1}; print + "$_\n" } for <DATA>;
In reply to Re^3: rename duplicate data
by Kenosis
in thread rename duplicate data
by blacknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |