in reply to Re^3: Changing the numerical value from 0 to 1
in thread Changing the numerical value from 0 to 1
May I ask how do I substitute the $resultarray3 values from 0 to 1 instead of doing at @resultarray? Thanks for all your help :)for (@resultarray) { s/^0$/1/ }; for(my $i = 0; $i < $originalfilecount; $i++) { if($first) { $first = 0; #print OUT5 "\t$resultarray[3]"; $outputb = "\t$resultarray[3]"; } } #print OUT5 "\n"; push(@output5a, $outputa); push(@output5b, $outputb); for(@output5b){s/0/1/g}; #convert output from 0 to 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Changing the numerical value from 0 to 1
by AnomalousMonk (Archbishop) on Jan 28, 2014 at 09:12 UTC | |
|
Re^5: Changing the numerical value from 0 to 1
by kcott (Archbishop) on Jan 29, 2014 at 05:59 UTC |