ପର୍ଲ୍ (ପ୍ରୋଗ୍ରାମିଂ ଭାଷା)

ଉଇକିପିଡ଼ିଆ ରୁ
Perl
Programming-republic-of-perl.png
ପାରାଡ଼ିଜିମ୍‌ multi-paradigm: functional, imperative, object-oriented (class-based), reflective, procedural, data-driven, generic
ପ୍ରଥମେ ଦେଖାଯାଇଥିଲା 1987
ଡିଜାଇନ କରିଥିଲେ Larry Wall
ବିକାଶକ Larry Wall
ସ୍ଥାୟୀ ରିଲିଜ 5.18.1[୧] (ଛାଞ୍ଚ:Release date)
ପୂର୍ବାଲୋକନ ରିଲିଜ 5.19.5[୨] (ଛାଞ୍ଚ:Release date)
ଟାଇପିଂ ପଦ୍ଧତି Dynamic
ଏହାକୁ ପ୍ରଭାବିତ କରିଛନ୍ତି AWK, Smalltalk 80, Lisp, C, C++, sed, Unix shell, Pascal
ଏହା ଦ୍ଵାରା ପ୍ରଭାବିତ ହୋଇଛନ୍ତି Python, PHP, Ruby, ECMAScript, LPC, Windows PowerShell, JavaScript, Falcon, Perl 6, Qore
Implementation language C
ଅପେରେଟିଂ ସିଷ୍ଟମ Cross-platform
ସତ୍ତ୍ଵ GNU General Public License or Artistic License[୩]
ଫାଇଲ ଏକ୍ସଟେନ୍‌ସନ୍ .pl .pm .t .pod[ଆଧାର ଲୋଡ଼ା]
ୱେବସାଇଟ perl.org

ପର୍ଲ୍ ଏକ ଉଚ୍ଚ-ସ୍ତରୀୟ କମ୍ପ୍ୟୁଟର ପ୍ରଗ୍ରାମିଂ ଭାଷା ଅଟେ । ୧୯୮୭ ରେ ଲାରୀ ୱାଲ୍ ଏହାକୁ ତିଆରି କରିଥିଲେ ।

ପ୍ରାରମ୍ଭିକ ସ୍ତର[ସମ୍ପାଦନା]

ପର୍ଲ ୫[ସମ୍ପାଦନା]

ପର୍ଲ ୬[ସମ୍ପାଦନା]

କିଛି ଉଦାହରଣ[ସମ୍ପାଦନା]

In older versions of Perl, one would write the Hello World program as:

    print "Hello World!\n";

In later versions, which support the say statement, one can also write it as:

    use 5.010;
    say "Hello World!";

Good Perl practices require more complex programs to add the use strict; and use warnings; pragmas, leading into something like:

    use strict;
    use warnings;
 
    print "Hello World!\n";

Here is a more complex Perl program, that counts down the seconds up to a given threshold:

 #!/usr/bin/perl
 use strict;
 use warnings;
 use IO::Handle;
 
 my ( $remaining, $total );
 
 $remaining = $total = shift(@ARGV);
 
 STDOUT->autoflush(1);
 
 while ( $remaining ) {
  printf ( "Remaining %s/%s \r", $remaining--, $total );
  sleep 1;
 }
 
 print "\n";

The perl interpreter can also be used for one-off scripts on the command line. The following example as invoked from an sh-compatible shell such as Bash translates the string "Bob" in all files ending with .txt in the current directory to "Robert":

     $ perl -i.bak -lp -e 's/Bob/Robert/g' *.txt

ସମାଲୋଚନା[ସମ୍ପାଦନା]

ଅଧିକ ପଢନ୍ତୁ[ସମ୍ପାଦନା]

ଆଧାର[ସମ୍ପାଦନା]

ବାହାଡ଼ ଲିଙ୍କ[ସମ୍ପାଦନା]