Skip to content

Instantly share code, notes, and snippets.

@yao2030
Created September 18, 2013 10:23
Show Gist options
  • Save yao2030/6607238 to your computer and use it in GitHub Desktop.
Save yao2030/6607238 to your computer and use it in GitHub Desktop.
capture
#/usr/bin/perl
##Copyright (C) 2013 by Yours truly
$_ = "Hello there, neighbor";
if (/(\S+) (\S+), (\S+)/)
{
print "words were $1 $2 $3\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment