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).

#!/usr/bin/perl -w use strict; my $str1 = hi; my $str2 = hello; my $str3 = hola; BEGIN { exit }