in reply to Re: exists EXPR error
in thread exists EXPR error
I am pretty sure that is what I have:
You suggested, "{ if ( exists $new_list{$file} ) {"
The code is broken into two lines to improve readability, but all of the code you suggested is present. Unless I am missing something!
sub DirCompare{ for my $file ( keys %old_list ) { if ( exists %new_list{$file} ) { next; } else { push @diffs, "Old file not in new: $file"; } } for my $file ( keys %new_list) { if ( exists %old_list{ $file } ) { next; } else { push @diffs, "Old file not in new: $file"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: exists EXPR error
by BrowserUk (Patriarch) on Dec 15, 2014 at 05:25 UTC | |
by smturner1 (Sexton) on Dec 15, 2014 at 05:44 UTC |