There's more than one way to do things | |
PerlMonks |
Re: Diamond errorsby LanX (Saint) |
on Jan 21, 2023 at 22:18 UTC ( [id://11149753]=note: print w/replies, xml ) | Need Help?? |
> perl -e'while(<>){1;}continue{print "$ARGV\n" if eof;}; print $!' file1 file2 file3 > I could push $ARGV onto an array using eof and compare the result to @ARGV after the loop please note that the continue will not be executed for empty files, although they exist.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|