Perl: відмінності між версіями

Матеріал з Файна Меморії
Перейти до навігації Перейти до пошуку
0
м Редагування користувача 95.132.115.27 (обговорення) відкинуті до версії користувача Surikoff
Рядок 1: Рядок 1:
dovbojoby sosnule
'''Perl''' ''(перл)'' - скриптова мова програмування, яка на [[95%]] складається з [[Regular expresion|регекспів]]. Створений [[Ларрі Уолл|Ларрі Уоллом]].
http://dramatica.org.ua/
 
 
== Недоліки ==
 
*Perl з легкістю інтерпретує такий код:<br />
<pre>`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$«,$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$»),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$«.»$;$/$%[$?]$_$\$,$:$%[$?]",$«&$~,$#,);$,++
;$,++;$^|=$»;`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`</pre><br />
або<br />
<pre>echo "test... test... test..." | sudo perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}
<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'</pre>
<ref>Це [[патч Барміна]]. Якщо ти його запустив, [[Всім похуй|мені тебе жаль]].</ref>
*Має майже [[Сі|Сюшний]] [[Синтаксис|синтаксис]].
*OMFG, він інтерпретує навіть вірші:
{{Блок|BEFOREHEAD: close door, each window & exit; wait until time.
open spellbook, study, read (scan, select, tell us);
write it, print the hex whole 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 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}}
 
 
 
== Переваги ==
*На Перл можна писати навіть якщо його не знаєш.<ref> Йобнись головою об клаву і виконай.</ref>
 
== Посилання ==
[http://www.perl.com Офіційний сайт]
 
== Примітки ==
{{reflist}}
 
{{Мови програмування|topic = - [[Regexp|регекспи]] рулять}}
 
[[Категорія:Мови програмування]]

Версія за 18:00, 14 червня 2011

Perl (перл) - скриптова мова програмування, яка на 95% складається з регекспів. Створений Ларрі Уоллом.


Недоліки

  • Perl з легкістю інтерпретує такий код:
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$«,$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$»),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$«.»$;$/$%[$?]$_$\$,$:$%[$?]",$«&$~,$#,);$,++
;$,++;$^|=$»;`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`


або

echo "test... test... test..." | sudo perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}
<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'

[1]

BEFOREHEAD: close door, each window & exit; wait until time. open spellbook, study, read (scan, select, tell us); write it, print the hex whole 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 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


Переваги

  • На Перл можна писати навіть якщо його не знаєш.[2]

Посилання

Офіційний сайт

Примітки

  1. ↑ Це патч Барміна. Якщо ти його запустив, мені тебе жаль.
  2. ↑ Йобнись головою об клаву і виконай.