Mega Code Archive

 
Categories / Perl / Language Basics
 

Postmatch $

$text = 'earlynowlate'; $text =~ /now/; print "Prematch: \"$`\" Match: \"$&\" Postmatch: \"$'\"\n";