in reply to Finding a extention
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";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Finding a extention
by Rich36 (Chaplain) on Oct 05, 2002 at 16:32 UTC |