torres09 has asked for the wisdom of the Perl Monks concerning the following question:
Hey
I have an array with some special character like '*' and i want to print " " (space ) every where I find this '*' . So this is my code
if($dlog2[$co] eq '*') { print $fh " ,"; }
but it still prints the '*' not space . If anyone can trace out the glitch in the code . Oh and comma is desired , so its a part of code
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Replacing a special character
by davido (Cardinal) on Jun 13, 2013 at 05:13 UTC | |
Re: Replacing a special character
by vinoth.ree (Monsignor) on Jun 13, 2013 at 04:19 UTC | |
Re: Replacing a special character
by pvaldes (Chaplain) on Jun 14, 2013 at 00:07 UTC | |
by BrowserUk (Patriarch) on Jun 14, 2013 at 00:57 UTC | |
by pvaldes (Chaplain) on Jun 16, 2013 at 22:06 UTC |
Back to
Seekers of Perl Wisdom