r12 - 2013-11-04 - 01:49:01 - LuzLunaYou are here:Foswiki>Sandbox Web>머그컵제작
editattachsettingsACLs

add
print raw
historyrenamedelete
children new

http://nostarch.com/mugperl.htm

이런식의 cheet sheet 이 인쇄된 머그컵 제작 계획을 위한 페이지입니다.

10개단위로 제작할때 단가가 5천원이라고 합니다. (구글검색 머그컵주문제작 으로 첫번째 나오는데 기준)

300dpi 글자는 9pt이상 20cm x 80cm

신청자
  1. luzluna (완료)
  2. sng2
  3. sng2
  4. sng2
  5. sng2
  6. jaker
  7. aero (완료)
  8. nas
  9. newb (완료)
  10. newb (완료)
  11. aqua
  12. aqua
  13. lqez (완료)
  14. corund (완료)

The three chief virtues of a programmer are: Laziness, Impatience and Hubris. - LARRY WALL (Programming Perl)

#!/usr/bin/env perl
use strict;
use warnings;

# SIGILS
$scalar, @array, %hash; &sub, *glob

# ARRAYS        HASHES
@array          %hash               # whole
@array[0,1]     @hash{'a', 'b'}     # slice
$array[0]       $hash{'a'}          # element

# REFERENCES
\       reference
[email protected]$&*   dereference
[]      anon.arrayref
{}      anon.hashref
\()     list of refs
\&      subroutine ref.

# VARIABLES
$_      default
$0      program name
$$      process id
$!      system/library error
[email protected]      eval error
@_      subroutine args
@ARGV   commandline args
%ENV    environment

# OPERATORS
Number      String
=           =
+           .
== !=       eq ne
< <= > >=   lt le gt ge
<=>         cmp

# REGEXES
m{search}
s{search}{replace}
=~ !~   match (not)

# REGEX PATTERNS
^       begin
$       end
\       escape
.       any char
?       zero or one
*       zero or more
*?      non-greedy *
+       one or more
+?      non-greedy +
{n}     exactly n
{n,}    n or more
{n,m}   n~m range
|       alternation
()      capture $1, etc.
(?:)    no capture
\1~\9  alias of capture
# modifiers
(?i)/(?-i)  turn on/off case insensitivity
(?s)/(?-s)  turn on/off dot matches newline
(?m)/(?-m) turn on/off ^,$ new line begin,end match
(?x)/(?-x)  turn on/off ignore whitespace, # comment
(?i-sm) turn on i and turn off s,m (embedded modifier)
(?i-sm:regex) i-sm only for regex
# lookaheads
(?=regex)  Zero-width positive lookahead
(?!regex)  Zero-width negative lookahead
(?<=regex)  Zero-width positive lookbehind
(?<!regex)   Zero-width negative lookbehind
(?(?=regex)then|else)   Conditionals match
(?(1)then|else)   1st group conditionals match
(?#comment)   ignore commant

# POSIX CLASSES
[:alpha:] [:alnum:]
[:ascii:] [:cntrl:] [:space:]
[:lower:] [:upper:]

# REGEX CHARACTER CLASSES
.   ==  [^\n]
\s  ==  [\x20\f\t\r\n]
\w  ==  [A-Za-z0-9_]
\d  ==  [0-9]
\b      word boundary
\G      end of /g match
\Q      quote meta
\E      end quote
\S, \W, \D, \B  negate

# REGEX MODIFIERS
/c  continue
/e  eval code (rhs)
/g  global
/i  case insensitive
/m  line based ^$
/o  compile once
/s  . includes \n
/x  ignore whitespace

시안 업로드

Upload files

Target topic:

File:
Comment:

-- LuzLuna - 2013-06-19
Topic revision: r12 - 2013-11-04, LuzLuna
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback