Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] mapping sets and ids

Expand Messages
  • Lou Hernsen
    I would look at the commands substr,tr///,s/// or m/// read up on those commands... I won t DO your homework... but since I am a teacher (not of perl) I WILL
    Message 1 of 3 , Dec 26, 2006
    • 0 Attachment
      I would look at the commands substr,tr///,s/// or m///
      read up on those commands...
      I won't DO your homework...
      but since I am a teacher (not of perl)
      I WILL point you in a direction...(could be the wrong direction)
      though I am no perl expert by any means.
      Luinrandir



      ----- Original Message -----
      From: "le_faquir" <le_faquir@...>
      To: <perl-beginner@yahoogroups.com>
      Sent: Sunday, November 26, 2006 5:57 AM
      Subject: [PBML] mapping sets and ids


      > Hi,
      >
      > I have two files :
      > File A contains the following :
      > ((((9,(6,8)),((4,((3,2),1)),5)),(12,11)),(13,(7,10)));
      >
      > File B contains the follwoing:
      > 1 A
      > 2 B
      > 3 C
      > 4 D
      > 5 E
      > 6 F
      > 7 G
      > 8 H
      > 9 I
      > 10 J
      > 11 K
      > 12 L
      > 13 M
      >
      > Based on the file B, I want to modify the file A such that all
      > numerics in file A get changed to the alphabets in column 2 of file B
      > (by mapping column 1 of file B to file A) such that file A is
      > effectvly modified to :
      > ((((I,(F,H)),((D,((C,B),A),E)),(L,K)),(M,(G,J)));
      > How to do it in perl ?
      >
      > Thanks
      >
      >
      >
      > Unsubscribing info is here:
      http://help.yahoo.com/help/us/groups/groups-32.html
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      > --
      > Internal Virus Database is out-of-date.
      > Checked by AVG Free Edition.
      > Version: 7.1.409 / Virus Database: 268.14.16/552 - Release Date: 11/26/06
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.