[첫화면으로]Perl/기타

마지막으로 [b]

변경사항 (가장 최근의 "일반적인 수정"부터) (다른 변경사항 없음)

-33,6 +33,7
== # 잡다한 것들 ==
* ''' [[Raymundo]] ''' : [http://blogs.perl.org/users/brian_d_foy/2012/04/painless-rss-processing-with-mojo.html Painless RSS processing with Mojo | brian d foy -- blogs.perl.org] - <small>2012-4-9 11:45 pm</small>
* ''' [[Raymundo]] ''' : [http://www.modernperlbooks.com/mt/2012/04/defending-against-its-dynamic-scope.html Defending Against Its Dynamic Scope - Modern Perl Books for modern Perl programming] - map 블록 안에서 다른 서브루틴을 부르다보면 $_가 바뀌어버릴 수 있으니 주의. - <small>2012-4-10 9:33 pm</small>
<comments(1)>


1. 스페이스가 포함된 디렉토리 이름에 대해서 glob을 사용할 때

# glob의 기본 동작은 공백을 기준으로 인자를 나누어서 "다수의 패턴"으로 간주해 버림
print join("\n", glob("C:/Documents and Settings/*"));

# 이걸 막으려면
# 안쪽에 다시 작은 따옴표를 써서 통채로 넘겨주던가
print join("\n", glob("'C:/Documents and Settings/*'"));

# File::Glob 모듈을 사용해서 기본 glob의 동작 방식을 오버라이드
use File::Glob qw/:glob/;
print join("\n", glob("C:/Documents and Settings/*"));

2. Unicode index에 해당하는 캐릭터 얻어내기

3. 잡다한 것들

이름:  
Homepage:
내용:  

4. Comments

이름:  
Homepage:
내용:
 


컴퓨터분류

마지막 편집일: 2012-4-10 9:33 pm (변경사항 [d])
1570 hits | Permalink | 변경내역 보기 [h] | 페이지 소스 보기