c:\@Work\Perl\monks>perl -wMstrict -le "my @files = qw(blah.config boo.config big.config); ;; for (@files) { my $scalar_variable = $_; printf qq{'$scalar_variable' -> }; $scalar_variable =~ s{ \A [^.]* }{}xms; print qq{'$scalar_variable'}; } " 'blah.config' -> '.config' 'boo.config' -> '.config' 'big.config' -> '.config'
Give a man a fish: <%-{-{-{-<
In reply to Re^3: How to remove the words before the dot using perl?
by AnomalousMonk
in thread How to remove the words before the dot using perl?
by finddata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |