in reply to how to make this perl code run

Yes, it's possible (without mucking with strict.pm or adding command line options or using non-standard perl versons).