I know that the next three lines of code tend to extract the string into the value of $ and store it in the $ header. But I do not know what the differences are between $value =~ s/^\s+//; and $value =~ s/\s+$//; .
$value =~ s/^\s+//; $value =~ s/\s+$//; $header[$i]= $value;
regex perl
user785099
source share