Do you know where your variables are? | |
PerlMonks |
Re^3: Regex problem while parsing tagged, hierarchical databy smokemachine (Hermit) |
on Sep 19, 2006 at 12:53 UTC ( [id://573704]=note: print w/replies, xml ) | Need Help?? |
perl -pi -e '/(<level(1|2))(\sid=\".*\")*>/;$&?$2==1?$b=$3:$_=~s;($1);$1$b;g:1;' input
In Section
Seekers of Perl Wisdom
|
|