in reply to Re^3: File ext number
in thread File ext number
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.
|
|---|