my $fileName = "blah.csv"; my @array = split '\.', $fileName; print $array[-1],"\n";
thor
In reply to Re: Extracting just the extension from a filename.
by thor
in thread Extracting just the extension from a filename.
by brentheigold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |