That comment doesn't apply to the ubuntu version. `$len` is the length of the filename _after_ the path has been stripped (at line 22).