in reply to Re: regex syntax and idomatic Perl
in thread regex syntax and idomatic Perl

if ($df_output =~ m[(\d+)%\s+/home$]) { $capacity = $1; }
No. It's really an assignment, not a comparison.