2007-04-01から1ヶ月間の記事一覧

my %tbl = ( hoge => 1 , hage => 2 ); my $hoge = delete $tbl{hoge}; my $hage = delete $tbl{hage}; ハッシュの代入時に delete つけておくことで、その後のコードで誤用を防ぐことができたり

メモっす ---- vars set appNow to FrontAppName() -- debug set appContents to the clipboard as Unicode text -- [BUG] set appURL to URLOfDocument(appNow) -- [BUG] set appName to NameOfDocument(appNow) ---- main procedure --上手くいかないので…

ま だれでも考えつく #!/usr/bin/perl #Time-stamp: <07/03/03 19:12:03 hiroya> use strict; use warnings; use Perl6::Say; use Mac::iTunes; use Net::Twitter; my $usr = "******"; my $pass = "******"; my $twit = Net::Twitter->new( username=> $usr…

今日のmemo

grep でORな検索 -e オプションで対象とする検索文字列を複数指定しておく $ grep -e perl -e ruby /path/to/source grep でANDな検索 grep を パイプで繋げりゃいい