C vs Perl

idlock의 이미지

Original Fox Trot Comic using C code.

Standard Perl Statement

Perl one-liner

http://perl.hacker.freeservers.com/
* 언어 논쟁이야기가 절대~!!! 아님니다. 그냥 웃자고요 ^^

jjjajh의 이미지

거기까지..~~!

ㅇㅋ

jinoos의 이미지

SQL[code:1]SELECT REPEAT("I

SQL

SELECT REPEAT("I will not throw paper airplanes in class\n", 500);

^^;;;

dalekang의 이미지

rexx 유저는 없나요 ???

ncrx -c 'do i=1 to 500; say "I will not throw paper airplanes in class."; end'

lifthrasiir의 이미지

[code:1]5554***:!v!:,*25-1<

5554***:!v!:,*25-1<
        @_0v>:#,_$^
v"n class."<^"I will not "<
>"i senalpria repap worht"^

Befunge(정확히는 Befunge-93) 버전입니다.

- 토끼군

임수서룬뫼의 이미지

Re: 저도 이걸 노렸죠 -.-

idlock 씀:
누가 C++ 버전 리플을 달았네요. -.- 대단하다..
 #include <iostream>
  struct C {
     C() { std::cout << "I will not throw paper airplanes in class\n"; }
  } c[500];
  int main() { return 0; }

약간 업그레이드해서,

#include <iostream>

using namespace std;

class Sorry
{
     private:

     void Print()
     {
           cout << "I will not throw paper airplanes in class." << endl;
     }

     public:

     Sorry()
     {
          Print();
     }

     ~Sorry()
    {
          Print();
    }
}

int main()
{
      Sorry arr[250];

      return 1;
}

Bini의 이미지

[quote="Bini"][b]Clean[/b] 간단히 Start함수

Bini 씀:
Clean
간단히 Start함수식의 평가를 이용해서
Start :: {#Char}
Start = abort (fun 1) // 인용부호의 출력을 막기위해  abort ^^;
where
	fun :: Int -> {#Char}
	fun n
		| n <= 500	= "I will not throw paper airplanes in class.\n" +++ fun (n+1)
				       = ""

이주제를 또 보게되는군요
예전에 제가 쓴것을 보니 초짜표시가 나네요 ^^;
지금같으면 요렇게...

Some_Str :== "I will not throw paper airplanes in class.\n"

Start :: *World -> *World
Start world = snd (fclose (c <<< (foldl (+++) "" (repeatn 500 Some_Str))) w)
where
    (c, w) = stdio world

wansug의 이미지

-_-

10 for i = 1 to 500 : print "blar blar~" : next i

run
blar blar~
blar blar~
blar blar~
blar blar~
blar blar~
     :

 

옛날 생각이 나서 그만.

galien의 이미지

groovy 로 하면..[code:1]groovy -e &quot;p

groovy 로 하면..

groovy -e "println 'I will not throw paper airplanes in class.\n' * 500"

아 언넝 프로젝 마치고 그루비 번역 들어가야 할텐데..

소타의 이미지

pl/pgsql[code:1]CREATE FUNCTION pl_pgs

pl/pgsql

CREATE FUNCTION pl_pgsql_version() RETURNS SETOF "pg_catalog"."record" AS 'DECLARE i int; node record; BEGIN FOR i IN 0..499 LOOP SELECT INTO node ''I will not throw paper airplanes in class.''::text; RETURN NEXT node; END LOOP;RETURN;END'LANGUAGE 'plpgsql';

SELECT * from pl_pgsql_version() as (pgsql_version text);

blitzerg의 이미지

Haskell

Haskell
start s = [ y | x <- [1..500], y <- "I will not throw paper airplanes in class.\n" ]

김도현의 이미지

TeX:[code:1]\newcount\n\def\punishme

TeX:

\newcount\n
\def\punishment#1#2{\n=0
  \loop\ifnum\n<#2 \advance\n by1
    \item{\number\n.}#1\endgraf\repeat}
\punishment{I will not throw paper airplanes in class.}{500}
\bye

반성문이니까 예쁘게 출력해가야죠.

익명 사용자의 이미지

오!! TeX macro인가요?

TeX macro를 이렇게도 활용하는구나 싶어 TeXBook을 살펴보니...

EXERCISE 20.1
Write a \punishment macro that prints 100 lines containing the message 'I must not talk in class.' [Hint: First write a macro \mustnt that prints the message once; then write a macro \five that prints it five times.]

라는 연습문제까지 있군요.

jof4002의 이미지

Re: 감격 :oops:

revival 씀:
:idea:
#include <iostream>
int main() { return 0; }

template<int i>
struct C : C<i-1> {
        C() { std::cout << i << ". I will not throw paper airplanes in class\n"; }
};
template<> struct C<0> {};
C<500> c;

한가지 의문이 생겨서 카운트를 찍어봤습니다.
예상은 500, 499, 498로 찍힐줄 알았는데.

1. I will not throw paper airplanes in class
2. I will not throw paper airplanes in class
3. I will not throw paper airplanes in class
4. I will not throw paper airplanes in class

..............

499. I will not throw paper airplanes in class
500. I will not throw paper airplanes in class

1,2,3, 이렇게 증가하면서 찍히네요.
누구 소스 설명좀 해주세요..

초롱초롱 :shock: 눈뜨고 지켜볼게요.ㅎㅎ

C<500>은 C<499>를 상속받습니다. C<499>는 C<498>을 상속받고요. 계속 가다가 C<1>은 C<0>을 상속받으면서 끝나지요.

그리고 C++에서는 클래스의 인스턴스가 생길 때 부모의 생성자부터 불리게 되어있습니다.

따라서 실행되는 생성자는 C<0>::C(), C<1>::C() ... C<499>::C(), C<500>::C() 순서가 되지요.

musik의 이미지

know where

nytereider의 이미지

Objective C:

Objective C:

#import <Foundation/NSObject.h>

@interface IamSorry : NSObject
{
@private

@protected
char *iamSorry;
}

- init;
-(void)printSorry;
@end

@implementation IamSorry
-init {
iamSorry="I will not throw paper airplanes in class\n";
return self;
}

-printSorry {
for(int count=0;count<500;count++) {
printf(iamSorry);
}

@end

int main() {
id iamSorry=[[IamSorry alloc] init];
[iamSorry print];
return 0;
}

이걸 약간 업그레이드해서 NSString을 쓰도록 한다면...

#import <Foundation/NSObject.h>

@interface IamSorry : NSObject
{
@private
NSString *iamSorry;
}

- initSorry: (NSString*)sorryString;
- (void)printSorry;
@end

@implementation IamSorry

-initSorry:(NSString*)sorryString {
if (sorryString == nil) {
iamSorry= @"I will not throw paper airplanes in class";
}
else { iamSorry=sorryString; }
return self;
}

-(void)printSorry {
for(int c=0;c<500;c++) {
NSLog(@"%@\n", iamSorry);
}
}

@end

int main() {
id iamSorry=[[IamSorry alloc] initString:nil];
NSAutoreleasePool *pool=[NSAutoreleasePool new];

[iamSorry printSorry];

RELEASE(iamSorry);
RELEASE(pool);

return 0;
}

clublaw의 이미지

[code:1]ftp&gt; get foxtrox_orig_c.gif

ftp> get foxtrox_orig_c.gif
ftp> get foxtrox_perl_code.gif
ftp> get foxtrox_1_line_perl_code.gif

죠커의 이미지

내공 50

반성문 프로그램 풀어주세요.

내공 50 드리겠습니다. ㅜㅜ

loblue의 이미지

vi 버젼

vi 버젼입니다 ^^

$vi
iI will not throw paper airplanes in class^[yy499p

only2sea의 이미지

vi 버전500iI will not throw paper airp

vi 버전

500iI will not throw paper airplanes in class.<Enter><ESC>

exman의 이미지

Lua 버전입니다.[code:1]for i=1, 500 do pr

Lua 버전입니다.

for i=1, 500 do print("I will not throw paper airplanes in class") end

근데 이게 주제와 무슨 상관이지 ~.~

superwtk의 이미지

C#으로도;;;;

C#

class App
{
    public static void main(String[] args)
    {
        for(int i=0; i<500; i++)
            Console.WriteLine("I will not throw paper airplanes in class");
    }
}

히힛=_=ㅋ[/code]

natas999의 이미지

[b]JSP[/b][code:1]&lt;% for &#40

JSP

<%
	for (int ix=0; ix < 500; ix++) {
		out.println ("I will not throw paper airplanes in class<br>");
	}
%>

lsj0713의 이미지

C[code:1]#define a&#40;x&#41; x x#

C

#define a(x) x x
#define b(x) x x x x x
main(){puts(a(a(b(b(b("I will not throw paper airplanes in class"))))));return 0;}

ghost의 이미지

GNU Smallktalk 버전...

GNU Smalltalk

 500 timesRepeat: [ 'I will not throw paper airplanes in class' printNl ] !

ghost의 이미지

VWNC Smalltalk 버전 ...

VWNC Smalltalk

 500 timesRepeat:[ Transcript print: 'I will not throw paper airplanes in class' ;cr .]
 

Vadis의 이미지

Java!![code:1]class Badaga6giRamyun&#1

Java!!

class Badaga6giRamyun{ 
    public static void main(String[] args) 
    { 
      int i;       
         for(i=0; i<500; i++) 
            System.out.print("I will not throw paper airplanes in class"); 
    } 
System.out.println();
} 

Java가 빠졌더군요...근데 맞는지 모르겠군요...Java를 한지 몇 년이 되어서 기억이 잘

않나네요...^^

SQL

SET QUOTED_IDENTIFIER ON 
GO
SET ANSI_NULLS ON 
GO

CREATE proc   Badaga6giramyun
@i int,
as
while (i < 500)
begin
set i = i + 1
insert into Badaga(BansungMun) select  'I will not throw paper airplanes in class'
end
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

exec Badaga6giramyun '0'

select BansungMun from Badaga

SQL은 심심해서 만들어 봤습니다. 출장와서 별 짓을 다하고 제가 한심스럽군요...혼자 출

장이라서 밤이 외롭습니다..

임수서룬뫼의 이미지

JavaScript - Upgrade

<HTML>
<HEAD>
<TITLE> 반성문 </TITLE>
</HEAD>
<BODY>
<SCRIPT language="JavaScript1.1">
<!---
var n;
for(var i=1; i<500; i++)
{
res=prompt("제 "+i+"회 : I will not throw paper airplanes in class", "모르겠다!!!");
if(res!="네, 알겠습니다!") i--;
}
//--->
</SCRIPT>
</BODY>
</HTML>

틀린 부분이 있겠지만 선생님이 이 파일을 실행시키면

[제 1회 : I will not throw paper airplanes in class]

[모르겠다!!!]

이런 창이 뜰 겁니다. 모르겠다!!! 를 지우고,
네, 알겠습니다! 를 입력하고 확인 단추를 누르는
과정을 500번 반복해야 합니다.

전혀 반성하는 자세라 볼 수가 없는...

임수서룬뫼의 이미지

[quote="lsj0713"]C[code:1]#define a&

lsj0713 씀:
C
#define a(x) x x
#define b(x) x x x x x
main(){printf(a(a(b(b(b("I will not throw paper airplanes in class\n"))))));return 0;}

lsj0713, 네, 실행해 봐야 오류를 알게 되겠죠?
I will... 다 붙어나오고 끝에만 \n (puts니까) 나오면 어떡해요

IDNed의 이미지

C++...[code:1]#include &lt;iostream&

C++...

#include <iostream>
#include <string>
using namespace std;
class Sorry{
public:
static int i;
Sorry(){cout << "I will not throw paper airplanes in class" << endl;++i;}
~Sorry(){if(i!=500) Sorry again;}
}
int Sorry::i=0;
int main(){
   Sorry huh;
   return 0;
}

죠커의 이미지

[code:1]??=include &lt;stdio.h&gt;??

??=include			<stdio.h>
??=define	OK		int ??/
	main()
??=define	I		int ??/
	i
??=define	SAY		printf ??/
	(
??=define	TO		"Content-Type: " ??/
					"text/html\r\n\r\n"
??=define	YOU		for(i=500; ??/
	i;--i)
??=define	WILL	"I will not throw paper" ??/
					"airplanes in class<br />\n")
??=define	KO		return ??/
	0
OK ??< I; SAY TO); YOU

SAY WILL;KO;??>

말이 이상하지만 귀찮아서 그냥 올려요.
VS2005에서도 아직 이중자가 안되는 군요 -_-

IDNed의 이미지

[quote="CN"][code:1]??=include &lt;std

CN 씀:
??=include			<stdio.h>
??=define	OK		int ??/
	main()
??=define	I		int ??/
	i
??=define	SAY		printf ??/
	(
??=define	TO		"Content-Type: " ??/
					"text/html\r\n\r\n"
??=define	YOU		for(i=500; ??/
	i;--i)
??=define	WILL	"I will not throw paper" ??/
					"airplanes in class<br />\n")
??=define	KO		return ??/
	0
OK ??< I; SAY TO); YOU

SAY WILL;KO;??>

말이 이상하지만 귀찮아서 그냥 올려요.
VS2005에서도 아직 이중자가 안되는 군요 -_-

이중자가 아니라 삼중자입니다 :)

혹시 모르는 분을 위한 설명하자면 C++(C도 해당되요? --)에서 # 등의 문자 못쓰는 플랫폼을 위해 3글자를 그런 글자로 바꾸는 흔치않은 표준인걸로 압니다만. :wink:

죠커의 이미지

[quote="IDNed"][quote="CN"][code:1]??=in

IDNed 씀:
CN 씀:
??=include			<stdio.h>
??=define	OK		int ??/
	main()
??=define	I		int ??/
	i
??=define	SAY		printf ??/
	(
??=define	TO		"Content-Type: " ??/
					"text/html\r\n\r\n"
??=define	YOU		for(i=500; ??/
	i;--i)
??=define	WILL	"I will not throw paper" ??/
					"airplanes in class<br />\n")
??=define	KO		return ??/
	0
OK ??< I; SAY TO); YOU

SAY WILL;KO;??>

말이 이상하지만 귀찮아서 그냥 올려요.
VS2005에서도 아직 이중자가 안되는 군요 -_-

이중자가 아니라 삼중자입니다 :)

혹시 모르는 분을 위한 설명하자면 C++(C도 해당되요? --)에서 # 등의 문자 못쓰는 플랫폼을 위해 3글자를 그런 글자로 바꾸는 흔치않은 표준인걸로 압니다만. :wink:

이중자가 안되어서 3중자를 사용했습니다. VC에서 3중자가 안될리가 없죠.

임수서룬뫼의 이미지

1. 이중자(digraph)는

1. 이중자(digraph)는 C99에서 추가된 기능이니까 아직 C++에는 없지 않나요?
2. 그리고 VS2005가 부분적으로 C99를 지키기 때문에 없을 확률이 매우 높고,
3. VS2005는 C++98도 다 지키지는 않으니까(export 외 수 개 지원 안함)
당연히 이중자가 없겠죠....

Anonymous-kei의 이미지

욱교 ㅋ

욱교 ㅋ

김민영.의 이미지

PERL

perl -e "print qq{sorry\n}x500"

dahlia의 이미지

Io 500 repeat("I will not

Io

500 repeat("I will not throw paper airplanes in class." println)

dahlia의 이미지

Io, 약간 다른 버전. "I

Io, 약간 다른 버전.

"I will not throw paper airplanes in class.\n" repeated(500) print

dahlia의 이미지

Io 코드500 repeat("I will

켁. 안 달리는 줄 알았는데 다음 페이지에 달리는 거였군요. 삭제도 못하네요

sunshout의 이미지

감동 yes

너무 오래된 글이지만 yes 감동입니다.

blueiur의 이미지

C# 버전이 없네요~

중복;

blueiur의 이미지

C# 버전입니다.

최대한 무식하고 길게 짰습니다.
초보 티란 바로 이런 것이죠!

using System;
 
namespace banSung
{
	public class Paper
	{
		private String stateMent = "I will not throw paper airplanes in class";
 
		public Paper(String Text)
		{
			this.stateMent = Text;
		}
 
		public void ShowStateMent()
		{
			Console.WriteLine(this.stateMent);
		}
	};
 
	public class PaperManager
	{
		private Paper[] paperList;
 
		public PaperManager(int Num, String Text)
		{
			paperList = new Paper[Num];
 
			for(int i=0; i<Num; i++)
			{
				this.paperList[i] = new Paper(Text);
			}
		}
 
		public void ShowAll()
		{
			foreach (Paper p in this.paperList)
			{
				p.ShowStateMent();
			}
		}
	};
}
 
namespace App
{
	using banSung;
 
	class Application
	{	
		[STAThread]
		static void Main(string[] args)
		{			
			String text = "I will not throw paper airplanes in class";
 
			PaperManager PM = new PaperManager(500, text);
			PM.ShowAll();
		}
	}
}

Tirin의 이미지

루비?

500.times { puts "I will not throw paper airplanes in class" }

- Tirin.

익명사용자의 이미지

another vi version

:map q iI will now throw paper air planes in the class.
500q

blueiur의 이미지

44

44

익명 사용자의 이미지

vim

yy500p

blmarket의 이미지

Vim one-liner?

500OI will not throw paper airplanes in class.

angpang27의 이미지

dir 므흐흐

윈도우 탐색기
c:\>에 .. 파일만들기_이름(I will not throw paper airplanes in class)

Ctrl+c 1회 Ctrl+v 50회

..
시작->실행->cmd

c:\>dir

kcm1700의 이미지

아직 대망의 brainfuck이 없는것 같네요.

한 번, 간단히 짜서 올려봅니다.
흐음~

++++++++++[>+++++++>++++++++++>+++>+>+++++<<<<<-]>>>>>[>++++++++++[<<<<<+++.--->>++.<+++++++++++++++++++.--------------.+++..>.<++.+.+++++.>.<.------------.++++++++++.---.++++++++.>.<-------.---------------.+++++++++++++++.-----------.+++++++++++++.>.<-----------------.++++++++.+++++++++.--.----.-----------.+++++++++++++.---------.++++++++++++++.>.<----------.+++++.>.<-----------.+++++++++.-----------.++++++++++++++++++..--------------->-->.>>-]<-]

grassman의 이미지

유물 발굴에 동참하며 Erlang 버전 올립니다.

-module(sorry).
-export([apologize/1, main/1]).

apologize(0) -> nil;
apologize(N) -> apologize(N-1), io:fwrite("I will not throw paper airplanes in class\n").

main(_) -> apologize(500).

g0rg0n의 이미지

이쓰레드 지존이군효;

이쓰레드 지존이군효;

g0rg0n의 이미지

죄송

중복이라 수정했습니다;

noblepylon의 이미지

wxWidgets로 한번 짜 보았습니다.

GUI는 없길래 한번 짜 보았습니다.
화면에 표시해주는 것은 물론 txt파일로 내보내는 기능도 있습니다.

ps. 제가 초보라서 코드가 약간 ㅂㅌ같습니다.
ps2. Win32바이너리와 리눅스 i386바이너리를 첨부하였습니다. 64비트용은 안타깝게도 없습니다.
print.h:

#ifndef PRINT_H_INCLUDED
#define PRINT_H_INCLUDED
 
#include < wx/wx.h >
 
class Sorry : public wxFrame
{
public:
    Sorry(const wxString& title);
 
    wxPanel* Layout;
 
    wxString* Buf;
    wxTextCtrl* str;
    wxButton* quit;
    wxButton* import;
 
    void OnQuit(wxCommandEvent & event);
    void OnImport(wxCommandEvent & event);
};
 
const int ID_IMPORT = 101;
 
#endif // PRINT_H_INCLUDED

print.cpp:
#include "print.h"
#include < wx/textctrl.h >
#include < wx/file.h >
#include < wx/filedlg.h >
 
Sorry::Sorry(const wxString& title)
        : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(670, 615))
{
    Layout = new wxPanel(this, wxID_ANY, wxPoint(0, 0), wxSize(660, 575), wxBORDER_NONE);
 
    Buf = new wxString;
    for(int i = 0; i < 500; i++) {
        *Buf += wxT("I will not throw paper airplanes in class. ");
        #if defined __WXMSW__
            if(i % 2) *Buf += wxT("\r\n");
        #elif defined __WXMAC__
            if(i % 2) *Buf += wxT("\r");
        #elif defined __UNIX__
            if(i % 2) *Buf += wxT("\n");
        #endif
    }
    str = new wxTextCtrl(Layout, wxID_ANY, *Buf, wxPoint(0, 0), wxSize(660, 540), wxTE_MULTILINE);
    str->SetFont(wxFont(12, wxFONTFAMILY_DECORATIVE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false));
 
    import = new wxButton(Layout, wxID_EXIT, wxT("Import..."), wxPoint(460, 540), wxSize(100,35));
    Connect(wxID_EXIT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Sorry::OnImport));
    import->SetFocus();
    quit = new wxButton(Layout, ID_IMPORT, wxT("Quit"), wxPoint(560, 540), wxSize(100,35));
    Connect(ID_IMPORT, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Sorry::OnQuit));
 
    SetIcon(wxIcon(wxT("std")));
    this->Center();
}
 
void Sorry::OnQuit(wxCommandEvent & WXUNUSED(event))
{
    Close(true);
}
 
void Sorry::OnImport(wxCommandEvent & WXUNUSED(event))
{
    wxString* caption = new wxString(wxT("Import As..."));
    wxString* wildcard = new wxString(wxT("Text files (*.txt)|*.txt"));
    wxString* defaultDir = new wxString(wxT("."));
    wxString* defaultFilename = new wxString(wxT("Sorry.txt"));
    wxFile* file = new wxFile;
    wxMessageDialog *info;
 
    wxFileDialog* dialog = new wxFileDialog(this, *caption, *defaultDir, *defaultFilename, *wildcard, wxSAVE | wxOVERWRITE_PROMPT);
 
    if (dialog->ShowModal() == wxID_OK) {
        file->Create(dialog->GetPath(), true);
        file->Write(*Buf);
        file->Close();
        info = new wxMessageDialog(NULL, wxT("Imported as ") + dialog->GetFilename() + wxT("."), wxT("Info"), wxOK);
        info->ShowModal();
    } else {
        info = new wxMessageDialog(NULL, wxT("Import failed."), wxT("Error"), wxICON_ERROR);
        info->ShowModal();
    }
 
}

main.h:
#ifndef MAIN_H_INCLUDED
#define MAIN_H_INCLUDED
 
#include < wx/wx.h >
 
class SorryApp : public wxApp
{
public:
    virtual bool OnInit();
};
 
#endif // MAIN_H_INCLUDED

main.cpp:
#include "print.h"
#include "main.h"
 
IMPLEMENT_APP(SorryApp)
 
bool SorryApp::OnInit()
{
    Sorry* t = new Sorry(wxT("Sorry."));
    t->Show(true);
 
    return true;
}

---
"The truth will make you free."(John 8:32)
"I am the way, and the truth, and the life: no one comes to the Father but through Me."(John 14:6)

첨부 파일파일 크기
Print Text(Linux-i386).zip26.21 KB
Print text(Win32).zip865.71 KB
dahlia의 이미지

Haskell

Haskell

apologize n = concat ["I will not throw paper airplanes in class\n" | _ <- [1..n]]

김동수의 이미지

R로 짜봤습니다.

R로 짜봤습니다.

 for(i in 1:500) print("I will not throw paper airplanes in class")

R쓰시는분은 안계시나요?
-------------------------------------
김동수 - PublicEnemy

hyunuck의 이미지

흡....

2페이지인줄 모르고 올렸는데 안지워지네요... ㅜ.ㅜ

hazemuse의 이미지

전 이거 몇년전에 본거 같은데 ㅡ.ㅡ;

본방 사수 -_-ㅋ

땀나는 맛이 있기에 세상은 살맛나는 것이지

jjjajh의 이미지

ㄲㄴ?

코딩 완료~!~!?

jjjajh의 이미지

386zjavbxj sjsms286zjavbxj sksms?~~!!

내전화번호는01077568122
내사무실은07081138122
너의사무실은?
아니면..

dahlia의 이미지

PostgreSQL

PostgreSQL

SELECT 'I will not throw paper airplanes in class.' FROM generate_series(1, 500);

ageldama의 이미지

Factor

USING: math formatting ;
 
500 [ "I will not throw paper airplanes in class.\n" printf ] times

----
The future is here. It's just not widely distributed yet.
- William Gibson

raymundo의 이미지

첫 글 올라온 지 6년만에 제대로 반항을 해봤습니다.

yes 를 사용한 것보다는 오히려 수위가 낮은 반항이 아닐까 싶긴 한데 ^^;;;;

- 제대로 수행되는 Perl 코드 맞습니다. :-)

- 저의 뛰어난 능력으로 만든...건 당연히 아니고 OTL

CPAN에서 이런 변환을 해주는 모듈을 찾아서 이용했습니다.

                                                                        (
                                                                '')=~('('.
                                                         '?'.'{'.('`'|'%')
                                                  .('['^'-').('`'|('!')).(
                                           '`'|',').'"'.('['^'+').('['^')'
                                   ).('`'|')').('`'|'.').('['^'/').(('{')^
                            '[').'\\'.'"'.('`'^')').('{'^'[').('['^"\,").(
                    '`'|')').('`'|',').('`'|',').('{'^'[').('`'|'.').('`'|
             '/').('['^'/').('{'^'[').('{'^'/').('`'|'(').('['^')').("\`"|
      '/').('['^',').('{'^'[').('['^'+').('`'|'!').('['^'+'). ('`'|"\%").(
      '['^')').('{'^'[').('`'|'!').('`'|')').('['^')').('['  ^'+').(('`')|
        ',').('`'|'!').('`'|'.').('`'|'%').('['^'(').('{'^  '[').('`'|')')
           .('`'|'.').('{'^'[').('`'|'#').('`'|',').('`'  |'!').('['^'(').(
             '['^'(').'.'.'\\'.'\\'.('`'|'.').'\\'.'"'   .('{'^'[').(('[')^
                '#').('{'^'[').('^'^('`'|'+')).('^'^    ('`'|'.')).(('^')^(
                   '`'|'.')).';'.('!'^'+').('!'^'+'    ).'"'.'}'.(')'));$:=
                      '.'^'~';$~='@'|'(';$^="\)"^     '[';$/='`'|'.';$,='('
                        ^'}';$\='`'|'!';$:=')'^      '}';$~='*'|'`';$^='+'^
                           '_';$/='&'|'@';$,=      '['&'~';$\=','^('|');$:=
                              '.'^'~';$~='@'      |'(';$^=')'^'[';$/=('`')|
                                '.';$,='('       ^'}';$\='`'|'!';$:=')'^'}'
                                   ;($~)        ='*'|'`';$^='+'^'_';$/='&'|
                                  '@';         $,='['&'~';$\=','^'|';$:='.'
                                ^'~';        $~='@'|'(';$^=')'^'[';$/="\`"|
                              "\.";       $,='('^'}';$\='`'|'!';$:=')'^"\}";
                             ($~)     ="\*"|    '`';$^='+'^'_';$/='&'|'@';$,
                           ='['    &"\~";         $\=','^'|';$:='.'^"\~";$~=
                         "\@"| '(';$^                =')'^'[';$/='`'|'.';$,=
                       '('^'}';$\=                      '`'|'!';$:=')'^"\}";
                      $~="\*"|                             '`';$^='+'^'_';$/
                    ="\&"|                                    '@';$,='['&'~'
                   ;$\=                                          ','^'|';$:=
                                                                   '.'^"\~";
                $~                                                    ="\@"|
             '(';                                                        #;#
            ;#
            ;#;
             #;
             #
           ;#
          ;#
       ;#;

댓글 보기 옵션

원하시는 댓글 전시 방법을 선택한 다음 "설정 저장"을 누르셔서 적용하십시오.