Question: Show that if $0 \leq \text{m}(A) \leq \infty$, then for each positive $q < \text{m}(A)$ there is a perfect set $B \subset A$ of measure $q$. (All subsets are in $\mathbb{R}$ and the measure is the Lebesgue measure).
I can find a $B$ without the restriction of being perfect. Now for any given $\epsilon > 0 $ thre is a closed $F$ such that $\text{m}(B) - \text{m}(F) < \epsilon$. and so by Cantor Bendixson we get a perfect set with measure $q' = \text{m}(F)$ where $q - q' < \epsilon$ and this can be done for any $\epsilon$ but I am unable to find a perfect set with exact $q$ as the measure.
How to proceed?
This is problem $2.1.31$ from Kaczor and Nowak, Problems in Analysis III, Integration. I am unable to follow the solution given in the book.