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

Perl Quiz

Perl Quiz

Gotanda.pm 2021/05/21

Shoichi Kaji

May 21, 2021
Tweet

More Decks by Shoichi Kaji

Other Decks in Programming

Transcript

  1. • timelocal ͸جຊతʹ͸ localtime ͷ"ٯ"Λఏڙ͢Δؔ਺ɻ Y,m,d,H,M,SΛड͚औΓunixtimeΛฦ͢ɻ • ͕ɺ"DWIM"ͳڍಈΛ͢Δؔ܎্ɺ 2020೥Λڥʹ݁Ռ͕มΘΔՄೳੑ͕͋Δ😨 •

    ͜ΕΛղܾ͢΂͘ɺܾఆతͳ݁ՌΛฦ͢ timelocal_modern͕༻ҙ͞Εͨɻ • ͕ɺͦΕ΋গʑ͍·͍ͪͩͬͨͷͰɺݱࡏͰ͸ timelocal_posixΛ࢖͏͜ͱ͕ਪ঑͞Ε͍ͯΔɻ ͜Ε͸localtimeͷਅͷ"ٯ"Λఏڙ͢Δɻ
  2. • @INC͸Ϟδϡʔϧαʔνύε͕ೖ͍ͬͯΔม਺ɻ • @INC͸جຊతʹ͸ * 1൪໨: CPANϞδϡʔϧೖΔsitelib * 2൪໨: coreϞδϡʔϧ͕ೖΔcorelib

    ʹΑͬͯߏ੒͞ΕΔɻ • ͕ɺ5.10Ҏલ͸corelib, sitelibͷॱʹͳ͍ͬͯͨɻ • ͦͷؔ܎্ɺ5.10ҎલͰdual lifeϞδϡʔϧΛΠϯετʔϧ͢Δ ͱɺcorelibʹ্ॻ͖͞ΕΔɻ • CartonͷޙܧCarmel͕v5.12Λཁٻ͍ͯ͠Δͷ͸͜Ε͕ཁҼɻ
  3. • Windowsʹ͓͍ͯ͸ ͨͱ͑ system LIST ܗࣜͰ͋ͬͯ΋ ಛघจࣈΛΫΦʔτ͠ͳ͍ͱ͍͚ͳ͍Մೳੑ͕͋ Δɻ • ઌͷྫͩͱಛʹʮ"ʯ͕໰୊ͱͳͬͯ

    ʮHello World!ʯͱදࣔ͞Εͳ͍ɻ • Windows༻ͷΫΦʔτʹ͸ɺWin32::ShellQuote ϞδϡʔϧΛ࢖͏ͱΑ͍ɻ