Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
なぜ私はPerlでコーディングするのか@吉祥寺.pm16
Search
korenari
November 22, 2018
Programming
0
970
なぜ私はPerlで コーディングするのか@吉祥寺.pm16
吉祥寺.pm16の登壇資料
https://kichijojipm.connpass.com/event/104750/
https://twitter.com/Korenari_D
korenari
November 22, 2018
Tweet
Share
More Decks by korenari
See All by korenari
Perlとテキストデータクリーニング@吉祥寺.pm18
korenari
0
2.1k
サーバレス日本語形態素解析エンジンとの格闘記録
korenari
0
2.4k
Other Decks in Programming
See All in Programming
止められない医療アプリ、そっと Swift 6 へ
medley
1
160
CSC305 Lecture 06
javiergs
PRO
0
220
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
370
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
220
Devvox Belgium - Agentic AI Patterns
kdubois
1
120
なぜGoのジェネリクスはこの形なのか? Featherweight Goが明かす設計の核心
ryotaros
7
1.1k
理論と実務のギャップを超える
eycjur
0
130
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
190
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
190
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
150
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
130
ALL CODE BASE ARE BELONG TO STUDY
uzulla
2
200
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
411
23k
Unsuck your backbone
ammeep
671
58k
Building Adaptive Systems
keathley
43
2.8k
Side Projects
sachag
455
43k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Building an army of robots
kneath
306
46k
How to Ace a Technical Interview
jacobian
280
24k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.9k
Facilitating Awesome Meetings
lara
56
6.6k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Visualization
eitanlees
149
16k
Transcript
ͳͥࢲ1FSMͰ ίʔσΟϯά͢Δͷ͔ 8 6 . 2 0 1
ࣗݾհ T G . , N F R D LP
LP , , !,PSFOBSJ@%
͜ͷλΠτϧʹ͖͔͚ͨͬ͠ https://twitter.com/black_kaiji/status/1057973231427059714
͜ͷλΠτϧʹ͖͔͚ͨͬ͠ https://twitter.com/black_kaiji/status/1057973231427059714 https://twitter.com/black_kaiji/status/1058712946098892800
ࠓͷαϚϦʔ •ͳͥࢲ1FSMͰίʔσΟϯά͢Δͷ͔
ࠓͷαϚϦʔ •ͳͥࢲ1FSMͰίʔσΟϯά͢Δͷ͔ •͍ •͍͢ •͏·͍
ࠓͷαϚϦʔ •ͳͥࢲ1FSMͰίʔσΟϯά͢Δͷ͔ •͍ ʜʜ Ϩεϙϯεॲཧ͕͍ •͍͢ ʜʜ লϝϞϦ •͏·͍ ʜʜ
ߦͰਖ਼نදݱ͕ॻ͚Δ
ࠓͷαϚϦʔ •ͳͥࢲ1FSMͰίʔσΟϯά͢Δͷ͔ •͍ ʜʜ Ϩεϙϯεॲཧ͕͍ •͍͢ ʜʜ লϝϞϦ •͏·͍ ʜʜ
ߦͰਖ਼نදݱ͕ॻ͚Δ 㲎 ਖ਼نදݱϦςϥϧ͕͋Δʂ
ਖ਼نදݱϦςϥϧʁ •ӈهͷࣈ෦ •1FSMͰએݴ͕ෆཁͰਖ਼ن දݱ͕ར༻Մೳ •෦Ͱྑ͍ײ͡ʹίϯύΠϧ •
$word = ‘kichijoji’; if ($word =~ /^k/) { print ”OK ¥n"; } else { print ”NG ¥n"; }
ਖ਼نදݱϦςϥϧͬͯԿ͕خ͍͠ͷʁ • ਖ਼نදݱϦςϥϧ͕ͳ͍ͱɺਖ਼نදݱΛద༻͢Δ͝ͱʹɺຖ ճਖ਼نදݱΛίϯύΠϧ͢ΔίʔυΛॻ͖͕ͪͰ͢ɻ • ͜Εɺ࣮ߦΛେ෯ʹѱԽͤ͞·͢ɻ • ਖ਼نදݱϦςϥϧ͕͋Εɺਖ਼نදݱΛݴޠॲཧܥଆͰίϯύ Πϧ͍ͯ͠ճ͢͜ͱ͕Ͱ͖ΔͷͰɺ࣮ߦ্͕͠·͢ɻ
http://blog.kazuhooku.com/2013/12/blog-post.html
ࢀߟ ͪΐͬͱલʹʹͳͬͨΒ͍͠ • ਖ਼نදݱ͕ߏจͱͯ͠ඞཁ͔Ͳ͏͔ͱ͍͏͔Β IUUQTUPHFUUFSDPNMJ ʢ݄ʣ • ϓϩάϥϛϯάݴޠʹ͓͚Δਖ਼نදݱϦςϥϧͷඞཁੑʹ͍ͭͯ IUUQCMPHLB[VIPPLVDPNCMPHQPTUIUNM ʢ݄ʣ
• ਖ਼نදݱϦςϥϧຊʹඞཁͳͷ͔ʁ IUUQTXXXTMJEFTIBSFOFULXBUDITT ʢ݄ !1Z$PO+1ʣ
1FSMͱ͍͑ϫϯϥΠφʔ perl -ne 'print if 30 ..
40’ *.txt 3040 perl -pi -e 's/foo/bar/g;’ t1.txt > t2.txt foobar ! perl -ne 'print if /./' t1.txt > t2.txt . $ →" Perl %#
1FSMͱ͍͑ϫϯϥΠφʔ perl -ne 'print if 30 ..
40’ *.txt 3040!# perl -pi -e 's/foo/bar/g;’ t1.txt > t2.txt foobar$) perl -ne 'print if /./' t1.txt > t2.txt . + !# →%!*( ' " TL& m(_ _ )m
ॳΊͯ1FSMͰൃදͰ͖ͨʂʂ