← Back to Perl Course | Chapter 1: Introduction | Lesson 1 of 7

Perl क्या है

Perl एक flexible scripting language है जो text को chew through करने में खासकर अच्छा है।

In this page:

  1. Perl क्या है

Perl क्या है

Perl एक general-purpose, interpreted programming language है जो 1987 में Larry Wall ने बनाई। यह text processing, regular expressions, system administration scripts, और programs के बीच glue code के लिए सबसे जानी जाती है। इसका motto है "There's more than one way to do it", इसलिए same task अक्सर कई styles में लिखा जा सकता है।

Note: Perl 5 वह version है जो यह course cover करता है; Perl 6 का नाम बदलकर Raku हो गया और यह एक separate language है।

उदाहरण: What is Perl

perl
use strict;
use warnings;

my %facts = (
    creator => "Larry Wall",
    first_release => 1987,
    good_at => "text processing",
);

for my $key (sort keys %facts) {
    print "$key: $facts{$key}\n";
}

# Output:
# creator: Larry Wall
# first_release: 1987
# good_at: text processing
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. Perl 5 को Raku (पहले Perl 6) से confuse करना
  2. यह सोचना कि Perl सिर्फ old-fashioned scripts के लिए है
  3. यह मान लेना कि एक Perl program लिखने का सिर्फ एक correct तरीका है
चैप्टर सारांश
  • Perl एक interpreted general-purpose language है
  • यह text processing और regular expressions में excel करता है
  • Perl 5 और Raku अलग languages हैं
  • TIMTOWTDI का मतलब है एक से ज़्यादा तरीके हैं
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.