B
Brian
Hello everyone,
Here I have a question
I use split to deal with the following data 60,,,74,0,,62,0,,42
some spaces exist between commas.
while (<INPUT>)
{
chomp;
my @array = split/,/;
}
In the @array the spaces between two comma change to 0. But I still
want to save the space distintively in the array other than a 0,
because I want to do some operation on the space in the @array late.
For instance
if ($fields[$num]== space ){
$fields[$num]=100;
}
Could someone help me about it? Thanks alot.
Brian
Here I have a question
I use split to deal with the following data 60,,,74,0,,62,0,,42
some spaces exist between commas.
while (<INPUT>)
{
chomp;
my @array = split/,/;
}
In the @array the spaces between two comma change to 0. But I still
want to save the space distintively in the array other than a 0,
because I want to do some operation on the space in the @array late.
For instance
if ($fields[$num]== space ){
$fields[$num]=100;
}
Could someone help me about it? Thanks alot.
Brian