Also Q&D:
>perl -wMstrict -le "my $s = 'hostname.ms.com'; $s =~ s{ [.] .* \z }''xms; print qq{'$s'}; " 'hostname'
In reply to Re^2: pattern matching question
by AnomalousMonk
in thread pattern matching question
by jrhaggie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |