# Test1.pm
package Test1;
hello{
print "HELLO\n";
}
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
| [sourcecode language="perl"] | |
| use 5.010; | |
| say "hello"; | |
| [/sourcecode] |
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/env perl | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use 5.010; | |
| use YAML; | |
| =pod |
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
| sub index_array { | |
| my ($array, $key, $offset) = @_; | |
| my $i = 0; | |
| for my $i ($offset .. $#$array) { | |
| my $is_eql = 1; | |
| for my $j (0 .. $#$key) { | |
| last if $i + $j > $#$array; | |
| if ($key->[$j] ne $array->[$i + $j]) { |
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 utf8; | |
| use LWP::UserAgent; | |
| use Encode; | |
| use AnyEvent; | |
| binmode(STDOUT,":utf8"); | |
| my $cv = AE::cv; | |
| my $only_biz = 1; |
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
| use AnyEvent; | |
| use EV; | |
| my $cv = AE::cv; | |
| my $t = AE::timer 2,0, sub{ | |
| my $cv2 = AE::cv; | |
| my $cnt = 10; | |
| my $tot = 0; |
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
| use AnyEvent; | |
| my $cv = AE::cv; | |
| my $t = AE::timer 2,0, sub{ | |
| my $cv2 = AE::cv; | |
| my $cnt = 10; |
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
| use AnyEvent; | |
| my $cv = AE::cv; | |
| my $t = AE::timer 2,0, sub{ | |
| my $cv2 = AE::cv; | |
| my $cnt = 10; | |
| my $tot = 0; | |
| foreach(1..10){ |
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
| ack --perl --no-group --no-filename '^(use |requires [\x{27}"])' */Makefile.PL */lib/ */bin/ */examples/ */t/ | sort | uniq |
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 strict; | |
| use File::Find; | |
| use Module::Which; | |
| use Module::ExtractUse; | |
| my %depend; | |
| finddepth({wanted=>\&wanted,follow_fast=>1} ,@ARGV); | |
| print join "\n",keys %depend; |