Re: matching sets and ids
- From: masa@xxxxxxxxxxxxxxxxx (Ueta Masayuki)
- Date: Sun, 26 Nov 2006 21:40:52 +0900
Hi,
How about this:
use strict;
use warnings;
my $str = "((((9,(6,8)),((4,((3,2),1)),5)),(12,11)),(13,(7,10)))";
my @data = ("dumy", "A","B","C","D","E","F","G","H","I","J","K","L","M");
$str =~ s/(\d+)/$data[$1]/g;
print $str;
.
- References:
- matching sets and ids
- From: Himanshu Ardawatia
- matching sets and ids
- Prev by Date: Re: matching sets and ids
- Next by Date: Re: Good Books on Perl, Beginner / Advance
- Previous by thread: Re: matching sets and ids
- Index(es):