1 1.1 christos #------------------------------------------------------------------------------ 2 1.1 christos # perl: file(1) magic for Larry Wall's perl language. 3 1.1 christos # 4 1.1 christos # The `eval' lines recognizes an outrageously clever hack. 5 1.1 christos # Keith Waclena <keith (a] cerberus.uchicago.edu> 6 1.1 christos # Send additions to <perl5-porters (a] perl.org> 7 1.1 christos 0 search/1/b #!\ /bin/perl Perl script text executable 8 1.1 christos !:mime text/x-perl 9 1.1 christos 0 search/1 eval\ "exec\ /bin/perl Perl script text 10 1.1 christos !:mime text/x-perl 11 1.1 christos 0 search/1/b #!\ /usr/bin/perl Perl script text executable 12 1.1 christos !:mime text/x-perl 13 1.1 christos 0 search/1 eval\ "exec\ /usr/bin/perl Perl script text 14 1.1 christos !:mime text/x-perl 15 1.1 christos 0 search/1/b #!\ /usr/local/bin/perl Perl script text executable 16 1.1 christos !:mime text/x-perl 17 1.1 christos 0 search/1 eval\ "exec\ /usr/local/bin/perl Perl script text 18 1.1 christos !:mime text/x-perl 19 1.1 christos 0 search/1 eval\ '(exit\ $?0)'\ &&\ eval\ 'exec Perl script text 20 1.1 christos !:mime text/x-perl 21 1.1 christos 22 1.1 christos 23 1.1 christos # by Dmitry V. Levin and Alexey Tourbin 24 1.1 christos # check the first line 25 1.1 christos 0 search/1 package 26 1.1 christos >0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; Perl5 module source text 27 1.1 christos # not 'p', check other lines 28 1.1 christos 0 search/1 !p 29 1.1 christos >0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; 30 1.1 christos >>0 regex \^1\ *;|\^(use|sub|my)\ .*[(;{=] Perl5 module source text 31 1.1 christos 32 1.1 christos 33 1.1 christos 34 1.1 christos # Perl POD documents 35 1.1 christos # From: Tom Hukins <tom (a] eborcom.com> 36 1.1 christos 0 search/1/B \=pod\n Perl POD document text 37 1.1 christos 0 search/1/B \n\=pod\n Perl POD document text 38 1.1 christos 0 search/1/B \=head1\ Perl POD document text 39 1.1 christos 0 search/1/B \n\=head1\ Perl POD document text 40 1.1 christos 0 search/1/B \=head2\ Perl POD document text 41 1.1 christos 0 search/1/B \n\=head2\ Perl POD document text 42 1.1 christos 43 1.1 christos # Perl Storable data files. 44 1.1 christos 0 string perl-store perl Storable (v0.6) data 45 1.1 christos >4 byte >0 (net-order %d) 46 1.1 christos >>4 byte &01 (network-ordered) 47 1.1 christos >>4 byte =3 (major 1) 48 1.1 christos >>4 byte =2 (major 1) 49 1.1 christos 50 1.1 christos 0 string pst0 perl Storable (v0.7) data 51 1.1 christos >4 byte >0 52 1.1 christos >>4 byte &01 (network-ordered) 53 1.1 christos >>4 byte =5 (major 2) 54 1.1 christos >>4 byte =4 (major 2) 55 1.1 christos >>5 byte >0 (minor %d) 56