LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2012, 07:45 AM   #1
zahheb
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Rep: Reputation: Disabled
perl interpretive or compiled ???


$pkg_name = "Account"; # executes at run-time
use $pkg_name; # executes at compile-time


they say perl is interpretive so where does compiling come into the picture now??

thanks
 
Old 08-14-2012, 08:27 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,724

Rep: Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554Reputation: 7554
there is a perl compiler: http://www.perl-compiler.org/
also see this page: http://stackoverflow.com/questions/5...mming-language
 
Old 08-15-2012, 02:42 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
See this http://www.perl.com/doc/FMTEYEWTK/comp-vs-interp.html

Loosely speaking, the real perl executable eg /usr/bin/perl reads your Perl code and sort-of-compiles it into an 'executable environment' in RAM, which it then runs.
Hence its much faster than a true interpreted lang eg bash, but not quite as fast as say 'C'.
My rule of thumb is Perl is ~85% as as fast as C, all other things being equal.
If you really want to get into the details, ask over at www.perlmonks.org; where the Perl gurus hang out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install vim via yum thinks perl is required - I build perl 5.14.2 from source rubanek Linux - General 4 05-02-2012 06:42 PM
Print output of a script to screen using Perl/Multiple installation of Perl Modules metallica1973 Linux - General 1 02-17-2011 05:59 PM
LXer: Installing Eclipse, the Epic Perl plugin and my first Perl GUI program LXer Syndicated Linux News 0 05-08-2009 06:41 PM
Execution of PERL scripts in Linux which is compiled in WINDOWs environment to_veera Linux - Software 3 06-18-2004 08:50 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration