½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ

½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ´Â ÀÏÀÏ ºñÁî´Ï½º ½ºÅ©¸³Æ®¸¦À§ÇÑ PERL ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Matthias Eckardt
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~eckardt/Script-Toolbox-0.22/Toolbox.pm

½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ Å±×


½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ ¼³¸í

½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ´Â ÀÏÀÏ ºñÁî´Ï½º ½ºÅ©¸³Æ®¸¦À§ÇÑ Perl ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù. ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ´Â ÀÏÀÏ ºñÁî´Ï½º ½ºÅ©¸³Æ®¸¦À§ÇÑ Perl ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù. Synopsis ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ QW (: ALL); ¶Ç´Â ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ QW (¿­±â ·Î±× Á¾·á Å×ÀÌºí »ç¿ë DIR ÆÄÀÏ ½Ã½ºÅÛ) $ = ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ -> new (); # # ·Î±× ( "·Î±× ¸Þ½ÃÁö"); stderr ·Î±× ( "·Î±× ¸Þ½ÃÁö", 'stderr')¿¡ ·Î±×ÀÎ # stderr ·Î±× ( "·Î±× ¸Þ½ÃÁö", 'stdout')¿¡ ·Î±×ÀÎÇϽʽÿÀ. # stdout log ( "·Î±× ¸Þ½ÃÁö", '/ tmp / x')¿¡ ·Î±×ÀÎÇϽʽÿÀ. # / tmp / x ·Î±× ( "·Î±× ¸Þ½ÃÁö", »õ IO :: ÆÄÀÏ "/ tmp / xxx"·Î±×); # / tmp / xxx ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ -> new ({logdir => {mod => '= s', desc => 'log directory', mid => 1, default => '/ var / log') }}); ·Î±× ( "·Î±× ¸Þ½ÃÁö"); # /var/log/.log ·Î±× ( "·Î±× ¸Þ½ÃÁö", 'syslog', 'severity', 'ű×'); # ·Î±×¸¦ ÅëÇØ syslogd # # ÀÎ¼â µÈ ¼­Àû Àμâ : # Àμ⠰¡ÀÔ "n", {$ t}; $ t = $ e-> Ç¥ (; $ t = $ e-> Ç¥ (, '|'); $ t = $ e-> Å×À̺í (, , , ); $ t = $ e-> Å×À̺í ({ 'Á¦¸ñ'=> 'Çؽà ¿¹', 'head'=> : 11 ', 33.456,'cc '], , ]}); $ t = $ e-> ÀÚµ¿ ¿­ ¸Ó¸® (F1, F2, F3) ','µ¥ÀÌÅÍ '=> })] # # ¸í·É ÁÙ ¿É¼Ç # $ tb = ½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ -> »õ ({file => {mod => '= s', desc => '¼³¸í', mid => 1, default => '/ bin / cat '}}); $ file = tb-> getopt ( 'file'); # dutchated, ´ÙÀ½ $ file = tb -> { 'ÆÄÀÏ'}; $ old = tb-> setopt ( 'newfile'); ¿ë¹ý(); # ¸ðµç ¿É¼Ç¿¡ ´ëÇÑ »ç¿ë ¸Þ½ÃÁö¸¦ ÀμâÇϽʽÿÀ # »ç¿ëÇÒ ¼öÀÖ´Â °æ¿ì POD »ç¿ë·® ( 'ÀÌ°ÍÀº »ç¿ëÀ»À§ÇÑ Ãß°¡ ÅؽºÆ®')À» ÀμâÇÕ´Ï´Ù. # # µð·ºÅ丮 ó¸® # $ ARRREF = DIR ( '/ TMP'); # ¸ðµÎ¸¦ Á¦¿ÜÇÏ°í. ±×¸®°í ... $ arrref = dir ( '/ tmp', '. * patt'); # ¸ðµç ÀÏÄ¡ÇÏ´Â patt $ arrref = dir ( '/ tmp', '!!. * patt'); # ¸ðµÎ patt # # ÆÄÀÏ Ã³¸® # $ arrref = ÆÄÀÏ ( 'path / to / file'); # array $ arrref = ÆÄÀÏ ( "/ bin / ps |")À¸·Î ÆÄÀÏ Àбâ; # comand stdoutÀ» ¹è¿­ ÆÄÀÏ ( "> path / to / file", 'ÀÌÀü ÄÜÅÙÃ÷ Àç ÁöÁ¤')À¸·Î ÀнÀ´Ï´Ù. ÆÄÀÏ ( "PATH / to / FILE", 'ÆÄÀÏ ¿¡ÀÌ ÆÄÀÏ Ãß°¡'); ÆÄÀÏ ( "°æ·Î / - / ÆÄÀÏ", $ ARREF); # ¹è¿­ ¿ä¼Ò ÆÄÀÏ ( "PATH / TO / FILE", $ ARRREF, $ RECSEP); # ¹è¿­ ¿ä¼Ò Ãß°¡ ÆÄÀÏ ( "°æ·Î / Åõ / ÆÄÀÏ", $ hashref, $ RECSEP, $ fieldsep); # Å° °ª ÁÙ ÆÄÀÏ ( "| / bin / cat", "hello world.n")À¸·Î Ãß°¡ÇϽʽÿÀ); $ fileHandle = tmpfile (); # »õ Àӽà ÆÄÀÏÀ» ¿±´Ï ´Ù ($ FILEHANDLE) # DESCLEANOS # EXIT (1, "Á¾·á ¸Þ½ÃÁö") # returnCode 1, # log () $ fh = open ( "> / tmp / xx")¸¦ ÅëÇØ Á¾·á ¸Þ½ÃÁö ¾²±â; # / tmp / xx°¡ÀÖ´Â io :: file °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ¾¹´Ï´Ù. ·Î±× ÆÄÀÏ Ç׸ñÀÌ ½ÇÆÐÇÑ °æ¿ì ·Î±× ÆÄÀÏ Ç׸ñÀ¸·Î ¿­¸³´Ï´Ù. FH = OPEN ( "/ bin / ps"); # io :: File °´Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. ½ÇÆÐÇÑ $ rc = system ( "/ bin / ls") # ½Ã½ºÅÛ ¸í·ÉÀ» ½ÇÇàÇÏ°í # ·Î±× ÆÄÀÏ¿¡ Ãâ·ÂÀ»º¸°íÇÕ´Ï´Ù. $ Áö±Ý = Áö±Ý (); PRINTF "DAY : % D MON : % D ¿¬µµ : % D WAYDST : % d yday : % d isDST : % D ÃÊ : % D ºÐ : % d ½Ã°£ : % d", $ Áö±Ý -> {mday}, $ Áö±Ý -> {Mon}, $ Now -> {eary}, $ Now -> {{wday}, $ Now -> {yday}, $ Now -> {isdst}, $ Now -> {sec}, $ Now-> {min}, $ Áö±Ý -> {½Ã°£}; $ Now = Now ( ' "% A, % B % D, % Y"'); # ¿ù¿äÀÏ, 2005 ³â 10 ¿ù 10 ÀÏ = head1 Ãß»ó ¸ðµâÀº ÀÏ»óÀûÀÎ ÀÛ¾÷À» À§ÇØ "½ºÀ§½º ±º´ë Ä®"À̾î¾ßÇÕ´Ï´Ù. ÁÖ ¸ñÇ¥´Â ¸í·É Á٠ó¸®, ÀÚµ¿ »ç¿ë ¸Þ½ÃÁö, ½ÅÈ£ ijġ (·Î±ë Æ÷ÇÔ), °£´ÜÇÑ ·Î±ë, °£´ÜÇÑ µ¥ÀÌÅÍ ¼­½Ä, °£´ÜÇÑ µð·ºÅ丮 ¹× ÆÄÀÏ Ã³¸®ÀÔ´Ï´Ù. ¡¤ÀÌ ¸±¸®½ºÀÇ »õ·Î¿î ¸Å°³ º¯¼ö ({diff => }) ¡¤ TEST T03_EXIT Å×½ºÆ® ¹ö±× ¼öÁ¤


½ºÅ©¸³Æ® :: µµ±¸ »óÀÚ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

sdl_sound.

SDL_Sound´Â .wav ¹× .mp3°ú °°Àº ¿©·¯ ÀαâÀÖ´Â »ç¿îµå ÆÄÀÏ Çü½ÄÀÇ µðÄÚµùÀ» ó¸®ÇÏ´Â ¶óÀ̺귯¸®ÀÔ´Ï´Ù. ...

163

´Ù¿î·Îµå

Ai4r.

AI4RÀº ·çºñ, ÀÛ¾÷ ¹× »ç¿ëÇÒ Áغñ°¡ µÈ Àΰø Áö´É ¶óÀ̺귯¸®ÀÔ´Ï´Ù. ...

174

´Ù¿î·Îµå