Skip to content

Instantly share code, notes, and snippets.

@kimmel
Created August 21, 2012 13:08
Show Gist options
  • Save kimmel/3415273 to your computer and use it in GitHub Desktop.
Save kimmel/3415273 to your computer and use it in GitHub Desktop.
nytprof generates error messages with this code
#!/usr/bin/perl
use v5.14;
use warnings;
use utf8::all;
use autodie;
open my $source, '<', 'dracula.txt';
foreach my $line (<$source>) {
print $line if ((index substr($line, 0, 1), 'T') == 0);
}
close $source;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment