Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: regex/substitution questionby slugger415 (Monk) |
on Feb 07, 2012 at 19:32 UTC ( [id://952329]=note: print w/replies, xml ) | Need Help?? |
Excellent! Thank you. I've not used "map" before so will have to study that one. Regarding the use of \b, I'm wondering if my hash name contains a period at the end, what would happen? This seems to work fine but am I causing a potential problem? I guess my question is, since . is also a word boundary, might it leave it in in the substitution?
Anyway thanks much, this is very helpful. UPDATE: Ignore that last question. What I meant was, if $data contains a period after Xaa1, not the name in %subs. Here is my Xaa1. data string.But I think I'm asking a confusing question.. so please ignore. :-)
In Section
Seekers of Perl Wisdom
|
|