Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Perlでキーボードから16進数を読み書きするには?
たとえば、16 進数 '3e' があり、これをキーボードから変数に読み取りたいとします。変数には、「3e」に相当する 10 進数 (62) を格納する必要があります。
$hex_value = <STDIN>; $decimal_value = hex $hex_value;
説明:
<STDIN>
hex