Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    print $text;
    
    #prints: that text
    
  2. or download this
    my $text = "this text";
    print $text =~ /this/;
    
  3. or download this
    #match can be used like a boolean T/F
    if($text =~ m/this/)
     { blah ...}