Jump to content

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

ଉଇକିପିଡ଼ିଆ‌ରୁ
(Perl (programming language)ରୁ ଲେଉଟି ଆସିଛି)
Perl
ପାରାଡ଼ିଜିମ୍‌multi-paradigm: functional, imperative, object-oriented (class-based), reflective, procedural, data-driven, generic
ପ୍ରଥମେ ଦେଖାଯାଇଥିଲା1987
ଡିଜାଇନ କରିଥିଲେLarry Wall
ବିକାଶକLarry Wall
ସ୍ଥାୟୀ ରିଲିଜ5.24.0[] (ମଇ 9, 2016 (2016-05-09))
ପୂର୍ବାଲୋକନ ରିଲିଜ5.19.5[] (ଅକ୍ଟୋବର 20, 2013 (2013-10-20))
ଟାଇପିଂ ପଦ୍ଧତିDynamic
ଏହାକୁ ପ୍ରଭାବିତ କରିଛନ୍ତିAWK, Smalltalk 80, Lisp, C, C++, sed, Unix shell, Pascal
ଏହା ଦ୍ଵାରା ପ୍ରଭାବିତ ହୋଇଛନ୍ତିPython, PHP, Ruby, ECMAScript, LPC, Windows PowerShell, JavaScript, Falcon, Perl 6, Qore
Implementation languageC
ଅପେରେଟିଂ ସିଷ୍ଟମCross-platform
ସତ୍ତ୍ଵGNU General Public License or Artistic License[]
ଫାଇଲ ଏକ୍ସଟେନ୍‌ସନ୍.pl .pm .t .pod[ଆଧାର ଲୋଡ଼ା]
ୱେବସାଇଟwww.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

ସମାଲୋଚନା

[ସମ୍ପାଦନା]

ଅଧିକ ପଢନ୍ତୁ

[ସମ୍ପାଦନା]
  • Learning Perl 6th Edition (2011), O'Reilly. Beginner-level introduction to Perl.
  • Beginning Perl 1st Edition (2012), Wrox. A beginner's tutorial for those new to programming or just new to Perl.
  • Modern Perl Archived 2011-12-22 at the Wayback Machine. 2nd Edition (2012), Onyx Neon. Describes Modern Perl programming techniques.
  • Programming Perl 4th Edition (2012), O'Reilly. The definitive Perl reference.
  • Effective Perl Programming 2nd Edition (2010), Addison-Wesley. Intermediate- to advanced-level guide to writing idiomatic Perl.
  • Perl Cookbook, ISBN 0-596-00313-7. Practical Perl programming examples.
  • Dominus, Mark Jason (2005). Higher Order Perl. Morgan Kaufmann. ISBN 1-55860-701-3. Functional programming techniques in Perl.
  1. "Perl 5.24.0 is now available". perl.org. Retrieved 2016-05-25.
  2. "Perl 5.19.5 is now available!". perl.org. 2013-10-20. Retrieved 2013-10-20.
  3. "Perl Licensing". dev.perl.org. Retrieved 2011-01-08.

ବାହାଡ଼ ଲିଙ୍କ

[ସମ୍ପାଦନା]