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....
In reply to Re: one user prompt instead of many
by bibliophile
in thread one user prompt instead of many
by AngusScrimm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |