in reply to Appending strings
#!/usr/bin/perl # http://perlmonks.org/?node_id=1142266 use strict; use warnings; my $path = "XX.YY.ZZ"; my $s = "(ABC | (~dEf & hIJ)) & ~LMn"; print $s =~ s/(\w+)/$path.$1/gr, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Appending strings
by doofus (Acolyte) on Sep 17, 2015 at 00:26 UTC | |
by toolic (Bishop) on Sep 17, 2015 at 00:44 UTC | |
by doofus (Acolyte) on Sep 17, 2015 at 00:48 UTC | |
by Anonymous Monk on Sep 17, 2015 at 01:50 UTC |