precedence
http://perldoc.perl.org/perlop.html#Conditional-Operator
Really means this:$x % 2 ? $x += 10 : $x += 2
(($x % 2) ? ($x += 10) : $x) += 2
$capacity =($df_output =~ m[(\d+)%\s+/home$]) ? $1 : 'Match Error';
In reply to Re: regex syntax and idomatic Perl
by huck
in thread regex syntax and idomatic Perl
by cbeckley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |