engaged on Config::Tiny Fetching http://www. cpan. org/authors/id/R/RS/RSAVAGE/ConfigTiny-2. 20. tgz ... okay Configuring Config-Tiny-2. 20 ... okay development and checking out Config-Tiny-2. 20 ... okay effectively put in Config-Tiny-2. 20 1 distribution put in Now, let’s write a script and run it opposed to each one Perl model. word: if you happen to run scripts, you do not need to alter to the explicit listing the place the specified Perl model is put in. simply run the portableshell. bat from the specified direrctory. If I run C:\my32bitperl516\portableshell. bat, i am getting to exploit the 32 bit Perl model five. sixteen, and after i'm performed and need to usePerl model five. 18 sixty four bit, I simply run C:\ my64bitperl518\portableshell. bat. you simply have to hit go out a couple of times to come again to the sooner model of Perl. you simply have to hit go out a couple of times to come again to the sooner model of Perl. Let's write a small script that makes use of the Smartmatch characteristic. not anything fancy, yet let’s create arrays, each one with names of alternative Linux flavours, after which use the Smartmatch operator - ~~ - to check them. it truly is with the intention to being deprecated and has moved to ‘experimental’ in Perl model five. 18. #! /usr/bin/perl #script identify pl1. pl use warnings; use strict; my @firstarray = qw (debian redhat ubuntu centos mint stella elementaryos); Admin my @secondarray = qw (debian redhat ubuntu centos mint stella elementaryos); print "The arrays have a similar elements!! \n" if @firstarray ~~ @secondarray; whilst it’s run utilizing Perl model five. sixteen (whether 32- or 64bit won't subject here), you'll get the next output: C:\Users\pmu>perl --version | locate /I "version" this can be perl five, model sixteen, subversion three (v5. sixteen. three) equipped for MSWin32-x86-multi-thread C:\Users\pmu>perl pl1. pl The arrays have an identical elements!! And with Perl model five. 18, you’ll get the subsequent output: C:\Users\pmu>perl --version | locate /I "version" this can be perl five, model 18, subversion 2 (v5. 18. 2) outfitted for MSWin32-x64-multi-thread C:\Users\pmu>perl pl1. pl Smartmatch is experimental at pl1. pl line eight. The arrays have a similar elements!! notice the road within the output that claims ‘Smartmatch is experimental at pl1. pl line 8’. As pointed out earlier than, Smartmatch has been moved to ‘experimental’ with Perl model five. 18, and that is why we get the message while the script is administered with Perl model five. 18. should you have been to run a script with ‘given-when’ statements, you would get whatever comparable. this manner, you could run a similar script opposed to diverse Perl types and spot the way it works. you may also replica the necessary folder to a USB force, paste it into one other computing device, run the portableshell. bat command, and you have Perl operating in there too! opposite to what you will have heard from fellow techies or learn on the web, Perl is especially a lot alive and continues to be being actively used.
Rated 5 – based on votes of