84d9c625bf
- Fix for possible unset uid/gid in toproto - Fix for default mtree style - Update libelf - Importing libexecinfo - Resynchronize GCC, mpc, gmp, mpfr - build.sh: Replace params with show-params. This has been done as the make target has been renamed in the same way, while a new target named params has been added. This new target generates a file containing all the parameters, instead of printing it on the console. - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org) get getservbyport() out of the inner loop Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
62 lines
2.1 KiB
Text
62 lines
2.1 KiB
Text
#------------------------------------------------------------------------------
|
|
# $File: perl,v 1.20 2012/06/21 01:16:49 christos Exp $
|
|
# perl: file(1) magic for Larry Wall's perl language.
|
|
#
|
|
# The `eval' lines recognizes an outrageously clever hack.
|
|
# Keith Waclena <keith@cerberus.uchicago.edu>
|
|
# Send additions to <perl5-porters@perl.org>
|
|
0 search/1/w #!\ /bin/perl Perl script text executable
|
|
!:mime text/x-perl
|
|
0 search/1 eval\ "exec\ /bin/perl Perl script text
|
|
!:mime text/x-perl
|
|
0 search/1/w #!\ /usr/bin/perl Perl script text executable
|
|
!:mime text/x-perl
|
|
0 search/1 eval\ "exec\ /usr/bin/perl Perl script text
|
|
!:mime text/x-perl
|
|
0 search/1/w #!\ /usr/local/bin/perl Perl script text executable
|
|
!:mime text/x-perl
|
|
0 search/1 eval\ "exec\ /usr/local/bin/perl Perl script text
|
|
!:mime text/x-perl
|
|
0 search/1 eval\ '(exit\ $?0)'\ &&\ eval\ 'exec Perl script text
|
|
!:mime text/x-perl
|
|
0 search/1 #!/usr/bin/env\ perl Perl script text executable
|
|
!:mime text/x-perl
|
|
0 search/1 #!\ /usr/bin/env\ perl Perl script text executable
|
|
!:mime text/x-perl
|
|
|
|
# by Dmitry V. Levin and Alexey Tourbin
|
|
# check the first line
|
|
0 search/1 package
|
|
>0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *; Perl5 module source text
|
|
!:strength + 10
|
|
# not 'p', check other lines
|
|
0 search/1 !p
|
|
>0 regex \^package[\ \t]+[0-9A-Za-z_:]+\ *;
|
|
>>0 regex \^1\ *;|\^(use|sub|my)\ .*[(;{=] Perl5 module source text
|
|
!:strength + 10
|
|
|
|
# Perl POD documents
|
|
# From: Tom Hukins <tom@eborcom.com>
|
|
0 search/1/W \=pod\n Perl POD document text
|
|
0 search/1/W \n\=pod\n Perl POD document text
|
|
0 search/1/W \=head1\ Perl POD document text
|
|
0 search/1/W \n\=head1\ Perl POD document text
|
|
0 search/1/W \=head2\ Perl POD document text
|
|
0 search/1/W \n\=head2\ Perl POD document text
|
|
0 search/1/W \=encoding\ Perl POD document text
|
|
0 search/1/W \n\=encoding\ Perl POD document text
|
|
|
|
|
|
# Perl Storable data files.
|
|
0 string perl-store perl Storable (v0.6) data
|
|
>4 byte >0 (net-order %d)
|
|
>>4 byte &01 (network-ordered)
|
|
>>4 byte =3 (major 1)
|
|
>>4 byte =2 (major 1)
|
|
|
|
0 string pst0 perl Storable (v0.7) data
|
|
>4 byte >0
|
|
>>4 byte &01 (network-ordered)
|
|
>>4 byte =5 (major 2)
|
|
>>4 byte =4 (major 2)
|
|
>>5 byte >0 (minor %d)
|