Skip to content

Instantly share code, notes, and snippets.

@spareslant
Created March 8, 2016 14:29
Show Gist options
  • Save spareslant/2e4591f67274c998a276 to your computer and use it in GitHub Desktop.
Save spareslant/2e4591f67274c998a276 to your computer and use it in GitHub Desktop.
#! /usr/bin/perl
$str = "This is a test
Will it work
lets see
";
if ($str =~ m!^This.+test$!)
{
print "matched\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment