The -w option passed to the perl command generates a warning about the code itself.
#!/usr/bin/perl -w # Test of open and die with $!. $filename = "nofile"; open(TMP, $filename) or die "Can't open \"$filename\" due to $! ";