Mega Code Archive
Categories
/
Perl
/
Language Basics
If $_contains needle, the string is printed
$_ = "a needle in a haystack"; print if /needle/;