Skip to content

Instantly share code, notes, and snippets.

@bigpresh
Created October 12, 2011 12:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigpresh/1281129 to your computer and use it in GitHub Desktop.
Save bigpresh/1281129 to your computer and use it in GitHub Desktop.
Pick holes in.
#!/usr/bin/perl
my $filename = @ARGV[0];
open(FILE, $filename);
my @lines = <FILE>:
for (@lines) {
print if /foo/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment