Skip to content

Instantly share code, notes, and snippets.

@bigpresh
Created May 28, 2010 10:43
Show Gist options
  • Save bigpresh/417026 to your computer and use it in GitHub Desktop.
Save bigpresh/417026 to your computer and use it in GitHub Desktop.
my @sources;
my $in_section;
while (my $line = <$fh>) {
$in_section++ if $line =~ /^# You can add/;
next unless $in_section;
$line =~ /^source (.+)/ and push @sources, $1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment