in reply to regex syntax and idomatic Perl

Hi

Should $capacity = $1 be $capacity == $1?

J.C.

Replies are listed 'Best First'.
Re^2: regex syntax and idomatic Perl
by Monk::Thomas (Friar) on Mar 21, 2017 at 13:56 UTC
    if ($df_output =~ m[(\d+)%\s+/home$]) { $capacity = $1; }
    No. It's really an assignment, not a comparison.