in reply to one user prompt instead of many
print "Delete files older than 3 days? [Y or N] \n"; chomp ($cleanup = <STDIN>); if ($cleanup =~ /Y/i) { foreach my $file (@bigarray) { ... } }
Untested!
Update:
Wow, you guys are *fast*! Two responses as I was typing my (meagre) thought....
|
|---|