Simpler and saves a ref

```perl
$class = ref $class // $class;
```