Memoize

BasicWerk   EC Support   Technique   Facebook  

20140913202025_perl_mac_reply

perl_mac_reply

 

 

Perl の対話モード(REPL)。

 
# Mac OS X
% sudo cpanm install Reply
% alias reply="rlwrap reply"
% reply
0> "aaa"
$res[0] = 'aaa'
 
1> '^a+'
$res[1] = '^a+'
 
2> print "yes\n" if $res[0] =~ m/$res[1]/;
yes
$res[2] = 1
 
3> grep { m/^[a-z]/ } qw(あああ いいい abc);
$res[3] = 'abc'
 

 


© Shin Nakamura/BasicWerk 2014