Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
        return $in == @$target ? 'Yes' : 'No';
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
    my @target = @ARGV ? @ARGV : qw(Sun Moon);
    my @in = intersect @target, @source;
    print @in == @target ? 'Yes' : 'No';