Ah, that's very cool:
my $match = my ($fsys, $kb, $used, $avail, $cap, $mtd) = $df_output =~ m{\A (.+) \s+ (\d+) \s+ (\d+) \s+ (\d+) \s+ (\d+) % \s+ +(.+) \z}xms;
I didn't know match could be used in a list context like that. Chaining the scalar assignment is a nice touch.
Thank you.
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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |