Created
August 21, 2012 13:13
-
-
Save kimmel/3415297 to your computer and use it in GitHub Desktop.
works fine with nytprof
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use v5.14; | |
| use warnings; | |
| use autodie; | |
| use utf8::all; | |
| 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