in reply to Problem reading files from directory

apart from the circumstance that wine is not just a system call ;), i suggest you localize a hook for $SIG{TERM}, which is what Ctrl-C signals. e.g.:
local $SIG{TERM} = sub { print STDERR "Got SIG{TERM}! Abort execution? + (y/n)"; my $c = getc; chomp $c; exit 0 if lc($c) eq 'y'; };
--------------------------------
masses are the opiate for religion.

Replies are listed 'Best First'.
Re^2: Problem reading files from directory
by TOD (Friar) on Jul 21, 2007 at 02:24 UTC
    sry, it's $SIG{INT}, not $SIG{TERM}.
    --------------------------------
    masses are the opiate for religion.