ब्लैक पर्ल

From Vigyanwiki
Revision as of 17:34, 8 August 2023 by alpha>Indicwiki (Created page with "{{short description|Code poem}} {{distinguish|Black Pearl (disambiguation){{!}}Black Pearl}} ब्लैक पर्ल पर्ल प्रोग्रामिं...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
ब्लैक पर्ल पर्ल प्रोग्रामिंग भाषा का उपयोग करके लिखी गई एक कोड कविता है। इसे 1 अप्रैल 1990 को यूज़नेट पर गुमनाम रूप से पोस्ट किया गया था।[1]और पर्ल प्रोग्रामर्स के बीच लोकप्रिय है[citation needed] पर्ल#पर्ल अतीत के एक अंश के रूप में। पर्ल 3 में लिखी गई कविता एक प्रोग्राम के रूप में निष्पादन (कंप्यूटिंग) करने में सक्षम है।

एट्रिब्यूशन

जब पोस्ट किया गया comp.lang.perl समाचार समूह ने कविता का श्रेय एक ऐसे व्यक्ति को दिया जो गुमनाम रहना चाहता है।[1] पर्ल के एक अन्य कवि, शेरोन रौएनज़ाहन (नी हॉपकिंस) पर लेखक होने का संदेह किया गया है, लेकिन तब से उन्होंने इस दावे का खंडन किया है।[2]


प्रोग्राम निष्पादन का परिणाम

निष्पादित होने पर, फ़ंक्शन निकास पर पहुंचने पर, ब्लैक पर्ल लाइन एक पर बाहर निकल जाता है। शेष पंक्तियों को पर्ल दुभाषिया द्वारा पार्स किया गया है लेकिन वास्तव में कभी निष्पादित नहीं किया गया है। प्रोग्राम कोई आउटपुट नहीं देता.

हालाँकि यह पर्ल 5 के तहत पार्स नहीं करेगा, पर्ल 5 में इसे पार्स करने योग्य बनाने के लिए ब्लैक पर्ल के कई स्वतंत्र अपडेट प्रकाशित किए गए हैं।[3][4]


ब्लैक पर्ल

BEFOREHAND: close door, each window & exit; wait until time.
    open spellbook, study, read (scan, select, tell us);
write it, print the hex while each watches,
    reverse its length, write again;
    kill spiders, pop them, chop, split, kill them.
        unlink arms, shift, wait & listen (listening, wait),
sort the flock (then, warn the "goats" & kill the "sheep");
    kill them, dump qualms, shift moralities,
    values aside, each one;
        die sheep! die to reverse the system
        you accept (reject, respect);
next step,
    kill the next sacrifice, each sacrifice,
    wait, redo ritual until "all the spirits are pleased";
    do it ("as they say").
do it(*everyone***must***participate***in***forbidden**s*e*x*).
return last victim; package body;
    exit crypt (time, times & "half a time") & close it,
    select (quickly) & warn your next victim;
AFTERWORDS: tell nobody.
    wait, wait until time;
    wait until next year, next decade;
        sleep, sleep, die yourself,
        die at last


यह भी देखें

संदर्भ

  1. 1.0 1.1 Wall, Larry; Christiansen, Tom; Orwant, Jon (July 2000). Programming Perl, Third Edition. O'Reilly. p. 649. ISBN 0-596-00027-8.
  2. Sharon Hopkins (1993-04-16). "Re: Forking a bunch of processes..." Newsgroupcomp.lang.perl. Usenet: 1993Apr16.233742.21214@cheshire.oxy.edu. Retrieved December 5, 2014.
  3. jonadab (2003-02-21). "Black Perl updated for Perl 5". Retrieved 2007-09-15.
  4. Ovid (2006-10-17). "ब्लैक पर्ल पर दोबारा गौर किया गया". Retrieved 2007-09-15.