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

Perl Install करना

ज़्यादातर Linux और macOS machines में पहले से Perl होता है, और Windows users एक free distribution install कर सकते हैं।

Perl Install करना

Linux और macOS normally पहले से installed Perl के साथ आते हैं, इसलिए आप perl -v से check कर सकते हैं। Windows पर आप Strawberry Perl install कर सकते हैं, जो एक compiler और common tools bundle करता है। कई Perl versions manage करने के लिए, perlbrew जैसे tools popular हैं।

Note: कुछ भी install करने से पहले यह देखने के लिए perl -v चलाएँ कि कौन-सा version installed है।

उदाहरण: Installing Perl

bash
$ perl -v
This is perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi

$ sudo apt install perl        # Debian/Ubuntu
$ brew install perl            # macOS with Homebrew
$ \curl -L https://install.perlbrew.pl | bash
$ perlbrew install perl-5.28.1

⚠️ Run this in your own terminal or Node.js environment.

{# 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. यह check किए बिना दूसरा Perl install करना कि क्या एक पहले से exist करता है
  2. perl -v (version) को perl -V (full configuration) से confuse करना
  3. experiments के लिए एक separate install इस्तेमाल करने की बजाय system Perl के modules edit करना
चैप्टर सारांश
  • perl -v से check करें
  • Linux और macOS में आमतौर पर Perl शामिल होता है
  • Strawberry Perl एक common Windows choice है
  • perlbrew कई Perl versions manage करता है
🔒

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.