returns: '.htm'use File::Basename; my @exts = qw(.html .htm .shtml .pl .cgi .txt .etc); # list which ever + extensions you will be using. my $file1 = "people.htm"; # the file you want to parse ($name,$path,$suffix) = fileparse($file1,@exts); print "$suffix";
In reply to Re: Finding a extention
by silent11
in thread Finding a extention
by andrew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |