devxlogo

Can I do a “binary dump” using Perl?

Can I do a “binary dump” using Perl?

Question:
Can I do a “binary dump” using PERL? Meaning, can I “compile” a PERL script to binary form? If this is possible, I would greatly appreciate some “how to.”

Answer:
There is a “dump” command in Perl that puts the byte codes out to a file. These binary codes can then be read in via “undump”. However this command is not widely used, because:

  • It may have bugs.
  • Compilation of Perl programs is about 10,000 lines per second, so if your program is less than 10,000 lines you are saving at most one second of response time.

Larry Wall, author of Perl, refuses to spend much time making Perl a compiler, preferring instead to add features.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist