in reply to Re: regex syntax and idomatic Perl
in thread regex syntax and idomatic Perl

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