# Test1.pm
package Test1;
hello{
print "HELLO\n";
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use 5.010; | |
use YAML; | |
=pod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sourcecode language="perl"] | |
use 5.010; | |
say "hello"; | |
[/sourcecode] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -T 는 임시디렉토리 명시 | |
# -B 는 Core 모듈도 포함 | |
pp -f Crypto -F Crypto -M Filter::Crypto::Decrypt -B -T partmp -o test1 test.pl | |
pp -f Crypto -F Crypto -M Filter::Crypto::Decrypt -B -o test1 test.pl |
perl 어플리케이션을 개발하여 각 서버로 배포할 때, 모듈의존성을 해결하는 방법에 대해서 설명합니다.
perl 스크립트를 작성할 때 CPAN (https://metacpan.org) 을 이용하면 방대한 양의 모듈, 상세한 문서, 다른 모듈을 기반으로 하여 높은 완성도를 이끌어 내는 perl만의 독특한 공유 문화 덕분에 손쉽게 복잡한 기능을 완벽하게 구현할 수 있습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use JSON; | |
use LWP::UserAgent; | |
my $m = LWP::UserAgent->new; | |
binmode(STDOUT,':utf8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use 5.010; | |
use Net::MyPeople::Bot; | |
use Data::Printer; | |
my $APIKEY = $ENV{MYPEOPLE_APIKEY}; |
- host인 리눅스 쪽에서는 perl모듈인 Mojolicious가 필요하고, notify-send 명령이 사용가능해야 한다.
- perl notify_recv.pl daemon 으로 웹서버를 띄운다. 포트값은 기본으로 3000번
- VM안의 Windows는 Strawberry perl과 AutoHotKey를 설치한다.
- AlertFlash.ahk 와 send2linux.pl 을 함께 둔다.
- send2linux.pl 내의 IP값을 ipconfig명령의 결과에 보이는 Gateway 로 잡고 포트도 맞춰준다.
- AlertFlash.ahk를 실행한다.
- 올드보이 OST - The Last Waltz
- 올드보이 OST - The Searchers
- 올드보이 OST - Cries Of whispers
- Damien Rice - Blower's Daughter
- 다이나믹듀오 - 불면증
- 다이나믹듀오 - 죽일놈
- 브라운아이드 소울 - 2003.7.14 AM 2:43
- 브라운아이드 소울 - 바보