Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        my $s = shift;
        print $s =~ /[xyz]/ ? "$s matches\n" : "$s does not match\n";
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
        }
        print "$s matches\n";
    }