Help for this page

Select Code to Download


  1. or download this
    if ($line !~ /\b$word\b/) { ... }
    
  2. or download this
    substr($string,0,1) = undef;
    
  3. or download this
    my $str = '"hello, my name is Bob, my cell number is, 1234567890"';
    $str =~ s/,[^,]*"$/"/;
    print "$str\n";