Help for this page

Select Code to Download


  1. or download this
    $_ = "abcdmefg";
    $_ = /m/;
    print "$&\t$`\t$'\n";
    
  2. or download this
    It prints:     m   abcd   efg
    
  3. or download this
    $_ = "abcdmefg";
    while(m/m/g)
    {
       print "matched 'm' at ",pos,"\n";
    }