And if the string is variable in length,
--my $emc_device = substr($inq, (length($inq) - 3)/2, 3);
In reply to Re: Match and extract three characters from the middle of a string
by Leviathan
in thread Match and extract three characters from the middle of a string
by svnipp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |