Help for this page

Select Code to Download


  1. or download this
    @arr1 = qw(Sun Moon Venus Pluto Neptune);
    
  2. or download this
    @arr1 = ("Sun", "Moon", "Venus", "Pluto", "Neptune");
    
  3. or download this
    if ((grep {$_ eq 'Sun'} @arr1) && (grep {$_ eq 'Moon'} @arr1)) {
        print "We have both a sun and a moon - yay!\n";
    ...
        print "Something is missing...\n";
    }