>>>>> "PK" == Parag Kalra <paragka...@gmail.com> writes:

  >> why are you doing s/// against $_? by default it does that.

you didn't rectify this one.


  PK> Sorry. Hope this reply is better and so as the following code:

much better.

  PK> use strict;
  PK> use warnings;
  PK> while(<DATA>){
  PK>         $_ =~ s/NM_(\d+)/$1:12345/g;

i didn't follow the request carefully. that is dropping the NM_ part.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to