List Info

Thread: mapping sets and ids




mapping sets and ids
user name
2006-11-26 10:57:49
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: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )