in reply to regex syntax and idomatic Perl
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';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: regex syntax and idomatic Perl
by cbeckley (Curate) on Mar 21, 2017 at 13:33 UTC | |
by AnomalousMonk (Archbishop) on Mar 22, 2017 at 21:50 UTC | |
by haukex (Archbishop) on Mar 22, 2017 at 22:04 UTC | |
by cbeckley (Curate) on Mar 22, 2017 at 23:33 UTC | |
by haukex (Archbishop) on Mar 23, 2017 at 11:20 UTC | |
| |
by AnomalousMonk (Archbishop) on Mar 23, 2017 at 01:43 UTC | |
| |
by cbeckley (Curate) on Mar 23, 2017 at 02:26 UTC |