Thu_Feb__7_11:50:30_PST_2019

Perl - Environment Advertisements Previous Page Next Page ï¿‚ï¾  Before we start writing our Perl programs, let's understand how to setup our Perl environment. Perl is available on a wide variety of platforms ¬ネï¾' Unix (Solaris, Linux, FreeBSD, AIX, HP/UX, SunOS, IRIX etc.) Win 9x/NT/2000/ WinCE Macintosh (PPC, 68K) Solaris (x86, SPARC) OpenVMS Alpha (7.2 and later) Symbian Debian GNU/kFreeBSD MirOS BSD And many more... This is more likely that your system will have perl installed on it. Just try giving the following command at the $ prompt ¬ネï¾' $perl -v If you have perl installed on your machine, then you will get a message something as follows ¬ネï¾' This is perl 5, version 16, subversion 2 (v5.16.2) built for i686-linux Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. If you do not have perl already installed, then proceed to the next section. Getting Perl Installation The most up-to-date and current source code, binaries, documentation, news, etc. are available at the official website of Perl. Perl Official Website ¬ネï¾' https://www.perl.org/ You can download Perl documentation from the following site. Perl Documentation Website ¬ネï¾' https://perldoc.perl.org Install Perl Perl distribution is available for a wide variety of platforms. You need to download only the binary code applicable for your platform and install Perl. If the binary code for your platform is not available, you need a C compiler to compile the source code manually. Compiling the source code offers more flexibility in terms of choice of features that you require in your installation. Here is a quick overview of installing Perl on various platforms. Unix and Linux Installation Here are the simple steps to install Perl on Unix/Linux machine. Open a Web browser and go to https://www.perl.org/get.html. Follow the link to download zipped source code available for Unix/Linux. Download perl-5.x.y.tar.gz file and issue the following commands at $ prompt. $tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make install NOTE ¬ネï¾' Here $ is a Unix prompt where you type your command, so make sure you are not typing $ while typing the above mentioned commands. This will install Perl in a standard location /usr/local/bin and its libraries are installed in /usr/local/lib/perlXX, where XX is the version of Perl that you are using. It will take a while to compile the source code after issuing the make command. Once installation is done, you can issue perl -v command at $ prompt to check perl installation. If everything is fine, then it will display message like we have shown above. Windows Installation Here are the steps to install Perl on Windows machine. Follow the link for the Strawberry Perl installation on Windows http://strawberryperl.com Download either 32bit or 64bit version of installation. Run the downloaded file by double-clicking it in Windows Explorer. This brings up the Perl install wizard, which is really easy to use. Just accept the default settings, wait until the installation is finished, and you're ready to roll! Macintosh Installation In order to build your own version of Perl, you will need 'make', which is part of the Apples developer tools usually supplied with Mac OS install DVDs. You do not need the latest version of Xcode (which is now charged for) in order to install make. Here are the simple steps to install Perl on Mac OS X machine. Open a Web browser and go to https://www.perl.org/get.html. Follow the link to download zipped source code available for Mac OS X. Download perl-5.x.y.tar.gz file and issue the following commands at $ prompt. $tar -xzf perl-5.x.y.tar.gz $cd perl-5.x.y $./Configure -de $make $make test $make install This will install Perl in a standard location /usr/local/bin and its libraries are installed in /usr/local/lib/perlXX, where XX is the version of Perl that you are using. Running Perl The following are the different ways to start Perl. Interactive Interpreter You can enter perl and start coding right away in the interactive interpreter by starting it from the command line. You can do this from Unix, DOS, or any other system, which provides you a command-line interpreter or shell window. $perl -e # Unix/Linux or C:>perl -e # Windows/DOS Here is the list of all the available command line options ¬ネï¾' Sr.No. Option s, and data from third-party platforms you connect with Tutorials Point. We also collect some data automatically, like information about your device and what parts of our Services you interact with or spend time using. In addition to personal information, certain anonymous information about your visit is automatically captured when you visit the Site. This information includes the name of the Internet service provider and the Internet Protocol (IP) address through which you access the Internet; the date and time you access the Site; the pages that you access while at the Site, occasional geographic data, and the Internet address of the Web site from which you linked directly to our site. We also may use your IP address to determine the organization that you are affiliated with. This anonymous information is used to help improve the Site, analyze trends, and administer the Site. We may monitor your interactions with the Site, such as what pages you visit, what content you review, and what comments you make, and maintain this information with your Site profile. What are my privacy options? Most browsers automatically accept cookies, but you can change your browser settings to decline cookies by consulting your browser¬タルs support articles. If you decide to decline cookies, please note that you may not be able to sign in, customize, or use some interactive features in the Services. To opt out of Google Analytics¬タル display advertising or customize Google Display Network ads, visit the Google Ads Settings page. For general information about targeting cookies and how to disable them, visit www.allaboutcookies.org. Updates

Comments

Popular posts from this blog

1548288703

Mon_Apr_15_04:01:22_PDT_2019