my @split = split(/\./,$file)[-1];
That will produce a syntax error:
$ perl -e'my @split = split(/\./,$file)[-1];' syntax error at -e line 1, near ")[" Execution of -e aborted due to compilation errors.
In reply to Re^4: File ext number
by jwkrahn
in thread File ext number
by Kirche
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |