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.
我有一个整数,比如 6677889。我想在我的 perl 脚本中将此值用作 0x66778899 的十六进制值。如何使用它?使用 sprintf,给出它的直接十六进制值。我不希望这种情况发生。如何去吧?请有任何建议。
你的意思不是这个?
% perl -e "print hex 6677889" 107444361