. is special in regular expressions. You need to escape it:
@file = split(/\./, $file_name);
Spend some time reading this tutorial and then this for all the gory details.
In reply to Re: Split FileName
by FunkyMonk
in thread Split FileName
by phimtau123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |