Help for this page

Select Code to Download


  1. or download this
        print qq{Matched: "$&"\n};       # print match
        print qq~Before match: "$`"\n~; # print data before match
        print qq|After match: "$'"\n|;      # print data after match
    
  2. or download this
        print <<STUFF;
    Matched: "$&"
    Before match: "$`"
    After match: "$'"
    STUFF