Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    my $v1 = "*hello";
    my $v2 = "*hello";
    ...
    if ($v1 =~ /$v2/){
     print "match\n";    
    }
    
  2. or download this
    $v2 =~ s/\*/\\\*/g;