i was trying to create csv file by appending variables using print function
what's wrong with this code why this prints ","."$j" to a new line
**code is here - **
while( $i < 1000 ){
$j = 1;
while( $mean_data_sorted[$i] == $mean_data_sorted[$i+1] ){
$i++;
$j++;
}
open( nofile, '>>', 'meanint.csv' );
print nofile "$mean_data_sorted[$i]" . "," . "$j" . "\n";
close nofile;
$i++;
}
**real output - **
-0.667
,33
-0.663
,23
-0.656
,19
-0.655
,32
-0.619
,23
**the output i want - **
-0.667,33
-0.663,23
-0.656,19
-0.655,32
-0.619,23