Upgrade to Pro — share decks privately, control downloads, hide ads and more …

なぜ私はPerlで コーディングするのか@吉祥寺.pm16

B7ac00eb002cb1ac972d6fc91f54165d?s=47 korenari
November 22, 2018

なぜ私はPerlで コーディングするのか@吉祥寺.pm16

B7ac00eb002cb1ac972d6fc91f54165d?s=128

korenari

November 22, 2018
Tweet

Transcript

  1. ͳͥࢲ͸1FSMͰ ίʔσΟϯά͢Δͷ͔ 8 6 . 2 0 1 

  2. ࣗݾ঺հ T G . , N F R D LP

    LP , , !,PSFOBSJ@% 
  3. ͜ͷλΠτϧʹ͖͔͚ͨͬ͠  https://twitter.com/black_kaiji/status/1057973231427059714

  4. ͜ͷλΠτϧʹ͖͔͚ͨͬ͠  https://twitter.com/black_kaiji/status/1057973231427059714 https://twitter.com/black_kaiji/status/1058712946098892800

  5. ࠓ೔ͷαϚϦʔ •ͳͥࢲ͸1FSMͰίʔσΟϯά͢Δͷ͔ 

  6. ࠓ೔ͷαϚϦʔ •ͳͥࢲ͸1FSMͰίʔσΟϯά͢Δͷ͔ •͸΍͍ •΍͍͢ •͏·͍ 

  7. ࠓ೔ͷαϚϦʔ •ͳͥࢲ͸1FSMͰίʔσΟϯά͢Δͷ͔ •͸΍͍ ʜʜ Ϩεϙϯε΍ॲཧ͕଎͍ •΍͍͢ ʜʜ লϝϞϦ •͏·͍ ʜʜ

    ߦͰਖ਼نදݱ͕ॻ͚Δ 
  8. ࠓ೔ͷαϚϦʔ •ͳͥࢲ͸1FSMͰίʔσΟϯά͢Δͷ͔ •͸΍͍ ʜʜ Ϩεϙϯε΍ॲཧ͕଎͍ •΍͍͢ ʜʜ লϝϞϦ •͏·͍ ʜʜ

    ߦͰਖ਼نදݱ͕ॻ͚Δ 㲎 ਖ਼نදݱϦςϥϧ͕͋Δʂ 
  9. ਖ਼نදݱϦςϥϧʁ •ӈهͷ੺ࣈ෦෼ •1FSMͰ͸એݴ౳͕ෆཁͰਖ਼ن දݱ͕ར༻Մೳ •಺෦Ͱྑ͍ײ͡ʹίϯύΠϧ •    

    $word = ‘kichijoji’; if ($word =~ /^k/) { print ”OK ¥n"; } else { print ”NG ¥n"; }
  10. ਖ਼نදݱϦςϥϧͬͯԿ͕خ͍͠ͷʁ • ਖ਼نදݱϦςϥϧ͕ͳ͍ͱɺਖ਼نදݱΛద༻͢Δ౓͝ͱʹɺຖ ճਖ਼نදݱΛίϯύΠϧ͢ΔίʔυΛॻ͖͕ͪͰ͢ɻ • ͜Ε͸ɺ࣮ߦ଎౓Λେ෯ʹѱԽͤ͞·͢ɻ • ਖ਼نදݱϦςϥϧ͕͋Ε͹ɺਖ਼نදݱΛݴޠॲཧܥଆͰίϯύ Πϧͯ͠࢖͍ճ͢͜ͱ͕Ͱ͖ΔͷͰɺ࣮ߦ଎౓͕޲্͠·͢ɻ 

           http://blog.kazuhooku.com/2013/12/blog-post.html
  11. ࢀߟ ͪΐͬͱલʹ΋࿩୊ʹͳͬͨΒ͍͠ • ਖ਼نදݱ͕ߏจͱͯ͠ඞཁ͔Ͳ͏͔ͱ͍͏࿩͔Β IUUQTUPHFUUFSDPNMJ ʢ೥݄೔ʣ • ϓϩάϥϛϯάݴޠʹ͓͚Δਖ਼نදݱϦςϥϧͷඞཁੑʹ͍ͭͯ IUUQCMPHLB[VIPPLVDPNCMPHQPTUIUNM ʢ೥݄೔ʣ

    • ਖ਼نදݱϦςϥϧ͸ຊ౰ʹඞཁͳͷ͔ʁ IUUQTXXXTMJEFTIBSFOFULXBUDITT ʢ೥݄೔ !1Z$PO+1ʣ 
  12. 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  %# 
  13. 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
  14. ॳΊͯ1FSMͰൃදͰ͖ͨʂʂ