Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    my $match= "hi";
    ...
    print "\$match is $match\n";
    print "'slow' matches (", 'slow' =~ $re, ")\n";
    print "'chimp' matches (", 'chimp' =~ $re, ")\n";
    
  2. or download this
    $match is hi
    'chimp' matches (hi)
    $match is lo
    'slow' matches ()
    'chimp' matches (hi)