Help for this page

Select Code to Download


  1. or download this
    my $var = ( $test =~ m/regex/ ) ? "true value" : "false value";
    
  2. or download this
    my $var1;
    my $var2;
    ...
       $var1 = "foo";
       $var2 = "bar";
    }