Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web Development
Expertise: Beginner
Mar 11, 1997

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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date