in reply to Appending strings
use warnings; use strict; my $path = "XX.YY.ZZ"; my $s = "(ABC | (~dEf & hIJ)) & ~LMn"; $s =~ s/([a-z]+)/$path.$1/gi; print "$s\n"; __END__ (XX.YY.ZZ.ABC | (~XX.YY.ZZ.dEf & XX.YY.ZZ.hIJ)) & ~XX.YY.ZZ.LMn
Verilog equation?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Appending strings
by doofus (Acolyte) on Sep 17, 2015 at 00:25 UTC | |
|
Re^2: Appending strings
by doofus (Acolyte) on Sep 17, 2015 at 00:47 UTC | |
by toolic (Bishop) on Sep 17, 2015 at 01:15 UTC | |
by Anonymous Monk on Sep 17, 2015 at 01:57 UTC |