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

ଉଇକିପିଡ଼ିଆ ରୁ
Perl
Programming-republic-of-perl.png
Paradigm(s) multi-paradigm: functional, imperative, object-oriented (class-based), reflective, procedural, data-driven, generic
Appeared in 1987
Designed by Larry Wall
Developer Larry Wall
Stable release 5.18.1[୧] (ଛାଞ୍ଚ:Release date)
Preview release 5.19.5[୨] (ଛାଞ୍ଚ:Release date)
Typing discipline Dynamic
Influenced by AWK, Smalltalk 80, Lisp, C, C++, sed, Unix shell, Pascal
Influenced Python, PHP, Ruby, ECMAScript, LPC, Windows PowerShell, JavaScript, Falcon, Perl 6, Qore
Implementation language C
OS Cross-platform
License GNU General Public License or Artistic License[୩]
Usual filename extensions .pl .pm .t .pod[ଆଧାର ଲୋଡ଼ା]
Website 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

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

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

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

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