Question:
Difference writing perl on Windows and Linux?
Asoh
2011-01-05 00:28:52 UTC
I am a beginner willing to learn PERL, But i am confused on the right and most flexible OS platform to learn it. How different is programming PERL with LINUX and with WINDOWS? Thanks
Three answers:
?
2011-01-05 01:01:29 UTC
Use either OS, depending on your preference. If you're equally comfortable with Linux and Windows, then I'd suggest Linux -- but there's no reason you shouldn't use Windows to program Perl, if that's what you like.



Typically, Linux distributions come with the Perl interpreter already installed. Invoking Perl scripts from the command line is easy: Just include the hash-bang path to the Perl directory at the top of the text file before including modules -- something like this:



#! /usr/bin/perl -w

use strict;



... and then use chmod to make the file executable.



---



You can also script Perl in MS Windows, but first you'll have to spend a bit of time setting things up. You'll need to install a Perl interpreter such as Strawberry Perl or Active Perl. This may involve changing some system settings, but once it's all up and running, it will work pretty much the same as it does in Linux.



---



Whichever OS you decide upon, I recommend you get your hands on the wonderful book "Learning Perl" from O'Reilly Media. It's highly readable, written in a conversational and even humorous tone, and it comes with lots of easy-to-understand examples. (I'm not associated with O'Reilly, but I speak from experience -- after wrestling with the Perl FAQ and other dry, complicated resources, I found this book to be the most straightforward introduction to the Perl language.)



There are also lots of learning resources available on the Perl.org site.



Perl is a great and witty language for getting things done. It's well worth the effort. I hope you enjoy learning it!
rahul b
2011-01-05 00:30:57 UTC
Dude there is no much differece if you are using Perl for web, but if you are using it for some low level coding then its much like c lang under windows and c lang under linux.
tagaca
2016-10-21 09:58:09 UTC
WOH! different solutions for this one. maximum are marvelous of their own way. A software is code that has been compiled into binary and appropriate into binary. In Microsoft domicile windows those are the .exe data. those classes run lots swifter than a script. A script needs to be interpretted by technique of a software for a working laptop or computing gadget to appreciate what to do with it. A script can recommend many different issues looking on what you're speaking approximately. One version of a script is what i could call an "working device script". those scripts are actually not something greater suitable than sending the working device(DOS or domicile windows or etc.) greater suitable than one command at a time. interior the early days of computing in the past domicile windows and human beings used command activates like DOS is whilst scripts became commonly used. human beings could concern different instructions to DOS by technique of putting all of those instructions right into a single document, then tell DOS to run those "Scripts". human beings could have a script that deletes all of their previous log data working example. rather of typing out 10 delete instructions, they could rather run merely their "script". What may be complete using working device "scripts" will advance with each and every new version of Microsoft domicile windows Apple OS and Linux. yet another place the place "script" is used now's in information superhighway programming. in case you have a information superhighway website it is dynamic(differences with each and every view) then the information superhighway server is surely working scripts to ensure what to instruct you. Examples of those forms of scripts could be Hypertext Preprocessor, asp, javascript, etc... additionally, it rather is transforming into an increasing form of commonly used for individual classes to come back with "scripting". working example Adobe Acrobat can embed scripts into PDF data that alter the habit of this methodology. right here is a few examples of the version between scripts and classes: video games are classes. a information superhighway Browser is a software, regardless of if it ought to execute javascript that could be a script. a information superhighway server(like APACHE) is a software, regardless of if it may study scripts to ensure what to instruct whilst somebody accesses it. so a strategies as programming languages circulate: CC++ will assemble right into a software. some thing like perl is a script. i wish this all is sensible to you.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...