Hi,
I have data in a flat file seperated by delimiters.
Ex:
ID09000|Name|Name02|23
I'm using the following code in order to split all this and put it into an array:
Now if I want to use the value (for comparaison etc..) in the $field[3] which is "23" it's not working because the $field[3] is interpreted as "23 " (with space)
Thank you in advance
I have data in a flat file seperated by delimiters.
Ex:
ID09000|Name|Name02|23
I'm using the following code in order to split all this and put it into an array:
Code:
my @field=split(/\|/,$record);
chomp $record;
Now if I want to use the value (for comparaison etc..) in the $field[3] which is "23" it's not working because the $field[3] is interpreted as "23 " (with space)
Thank you in advance