#!/usr/local/bin/perl use strict; use warnings; #my $file = 'rev1.config'; my $file = 'checklist_tmp.config'; $file =~ s/\w+\././; print "$file\n"; Output: perl test.pl .config
In reply to Re: How to remove the words before the dot using perl?
by madtoperl
in thread How to remove the words before the dot using perl?
by finddata
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |