To end this code the user is forced to use CTRL-C but the print statement never happens. Am I reading the docs wrong and missing something. Is there a better way to execute some code if the program stops before I want it to? Thanks in advance#!/usr/bin/perl use strict; while(1) { } END { print "Hello from the END block\n"; }
In reply to END {} not executing by cfreak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |