Help for this page

Select Code to Download


  1. or download this
    if ( "add" =~ /^\Q$answer/ ) {
    ...
    }
    
  2. or download this
    my $ans = qr/^\Q$answer/;
    if ( "add" =~ /$ans/ ) {
    ...
    } elsif ( "remove" =~ /$ans/ ) {
    ...
    }