hello99hello
Programmer
Hi All,
All I want to do is change the decimal value of 3rd element in my array records.
Here is my inpu records:
al green 00.0000
jesse cal 02.00
laura Morgan 20.0
My expected output should look like the following:
al green 0.0000
jesse cal 2.0000
laura Morgan 20.0000
Here is my effort:
chomp $array[2] ;
$recordf = %3.4f, $array[2] ;
$array[14]= $recordf ;
However, this did not work, any help would be appreciated.
All I want to do is change the decimal value of 3rd element in my array records.
Here is my inpu records:
al green 00.0000
jesse cal 02.00
laura Morgan 20.0
My expected output should look like the following:
al green 0.0000
jesse cal 2.0000
laura Morgan 20.0000
Here is my effort:
chomp $array[2] ;
$recordf = %3.4f, $array[2] ;
$array[14]= $recordf ;
However, this did not work, any help would be appreciated.