in reply to Re^2: rename duplicate data
in thread rename duplicate data
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>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: rename duplicate data
by Anonymous Monk on Jun 24, 2012 at 20:36 UTC | |
|
Re^4: rename duplicate data
by blacknight (Initiate) on Jun 26, 2012 at 11:11 UTC | |
by Athanasius (Archbishop) on Jun 26, 2012 at 12:00 UTC |