
StarkRavingCalm
Novice
Mar 22, 2013, 10:47 AM
Post #1 of 2
(132 views)
|
|
If value is NULL then quit?
|
Can't Post
|
|
I am creating a script that will monitor directories for specific files and email the contents. That part is working great but how do I tell the script to quit if the array is empty? my @files = grep ( -f ,<*.txt>); # Write them out foreach $file (@files) { print "$file\n"; } I dont want to repeatedly recieve email with: $VAR1 = {};
(This post was edited by StarkRavingCalm on Mar 22, 2013, 10:49 AM)
|