>>>>> "PK" == Parag Kalra <[email protected]> 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  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to