in reply to comparing contents of two arrays and output differences
Why not just check if the backup exists for each input file using one of the filetest operators -X ?
for my $file (glob('*.xml') ) { if (-r "$file.bak" ) { print "backup found for $file\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: comparing contents of two arrays and output differences
by PitifulProgrammer (Acolyte) on Jan 02, 2015 at 12:14 UTC | |
by RichardK (Parson) on Jan 02, 2015 at 13:57 UTC | |
by PitifulProgrammer (Acolyte) on Jan 02, 2015 at 14:22 UTC | |
by roboticus (Chancellor) on Jan 02, 2015 at 15:55 UTC | |
by PitifulProgrammer (Acolyte) on Jan 05, 2015 at 12:17 UTC | |
| |
by 2teez (Vicar) on Jan 02, 2015 at 15:58 UTC | |
by PitifulProgrammer (Acolyte) on Jan 05, 2015 at 13:54 UTC |