if (my ($capacity,$loc) = $df_output =~m/(?:\S+\s+){4}(\d+)%\s+(.+)$/) +{ #say "cap=$capacity of $loc"; return $capacity; } return "Match Error";
...it is unhealthy to remain near things that are in the process of blowing up. man page for WARP, by Larry Wall
In reply to Re: regex syntax and idomatic Perl
by NetWallah
in thread regex syntax and idomatic Perl
by cbeckley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |