Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $string ='<vertical name="Businesses" combination="and"> <Busines name="Content"> <description> Replicant consists of Icon, Title1, Title2 +, Description, MOre Title, and More Hyperlink (minimum=0, maximum=10) + </description> <BusinessNames min-entity="1" max-entity="10">'; my $strRepl ='<Bnames name="Businesses" min-entity="1" max-entity="10" +>'; $string =~ m/<BusinessNames (.*)?>/; my $str2Brepl = $`; $string =~ s/$str2Brepl/$strRepl/mi; print "$string";
The $string contents remain unchanged.
Please suggest why and a solution too.
thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Debug and workaround help
by davido (Cardinal) on Jun 28, 2005 at 06:10 UTC | |
Re: Debug and workaround help
by prasadbabu (Prior) on Jun 28, 2005 at 06:10 UTC | |
by Anonymous Monk on Jun 28, 2005 at 06:30 UTC | |
by prasadbabu (Prior) on Jun 28, 2005 at 06:38 UTC | |
Re: Debug and workaround help
by jbrugger (Parson) on Jun 28, 2005 at 06:12 UTC | |
Re: Debug and workaround help
by Animator (Hermit) on Jun 28, 2005 at 10:14 UTC | |
Re: Debug and workaround help
by siliconGopher (Initiate) on Jun 28, 2005 at 06:54 UTC |