Ah, ok. I see why
$capacity =($df_output =~ m[(\d+)%\s+/home$]) ? $1 : 'Match Error';
is correct.
Thank you for the link, otherwise my next question was going to why the previous version didn't produce an error. However, the fact that this operator can evaluate to an lvalue now prompts the next question, where else does this occur? Does any expression that evaluates to a object or variable work the same way?
Thanks,
cbeckley
In reply to Re^2: regex syntax and idomatic Perl
by cbeckley
in thread regex syntax and idomatic Perl
by cbeckley
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |