This file contains 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
package Inline; | |
use strict; | |
require 5.006; | |
$Inline::VERSION = '0.48'; | |
use AutoLoader 'AUTOLOAD'; | |
use Inline::denter; | |
use Config; | |
use Carp; |
This file contains 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
alec-chende-macbook-3:~ alec$ perl -e '$v = oct("0b" . $ARGV[0]); printf "%d, 0x%X\n", $v, $v;' 11111 | |
31, 0x1F |
This file contains 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
C:\strawberry\perl\bin\perl.exe C:\strawberry\cpan\build\Doxygen-Lua-0.02-fdAZd2\bin\lua2dox %1 |
This file contains 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
http://lib.ncl.edu.tw/cgi-bin/isbnget?OPT=BOOK.B&TYPE=S&PGNO=1&SEL.CL=&FNM=S&TOPICS1=BN&SEARCHSTR1=9861122931&BOL1=AND&TOPICS2=TI&SEARCHSTR2=&BOL2=AND&TOPICS3=TI&SEARCHSTR3=&PAGELINE=10 | |
//table[@width="100%"][1]//tr//td[2] | |
# 1 author | |
# 2 publisher | |
# 3 edition | |
//table[@width="100%"][2]//tr[2]//td | |
# 2 isbn, volume, binding | |
# 3 pages |
This file contains 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; | |
my $log = $ARGV[0] || 'log.txt'; | |
while (1) { | |
my $line_number = (split q{ }, `wc -l $log`)[0]; | |
my $tail = `tail $log`; |
This file contains 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 | |
my $self = shift; | |
my $input = shift; | |
my $in_block = 0; | |
my $in_function = 0; | |
my $block_name = q{}; | |
my $result = q{}; |
This file contains 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
source ~/.vimrc | |
if has("gui_gtk2") | |
set guifont=Courier\ 10\ Pitch\ 14 | |
else | |
set guifont=-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-1 | |
endif |