SUB :: CALLER.

SUB :: Caller´Â @_ÀÇ ³¡¿¡ ¹ß½ÅÀÚ Á¤º¸¸¦ Ãß°¡ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

SUB :: CALLER. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Shay Harding
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~shayh/Sub-Caller-0.60/Caller.pm

SUB :: CALLER. ű×


SUB :: CALLER. ¼³¸í

Sub :: Caller´Â @_ _ _ _ ¹ß½ÅÀÚ Á¤º¸¸¦ Ãß°¡ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. Sub :: Caller´Â È£ÃâÀÚ Á¤º¸¸¦ @_ÀÇ ³¡¿¡ Ãß°¡ ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. Sub :: Caller´Â È£ÃâÀÚ Á¤º¸¸¦ ¸ðµÎ Àü´ÞÇϰųª ƯÁ¤, ÇÏÀ§ ·çƾÀ» »ç¿ëÇÏ´Â ½¬¿î ¹æ¹ýÀ» Á¦°øÇÕ´Ï´Ù. Sub :: Caller QW (¸ðµÎ ); ## ¸ðµç ºñ anon ¼­ºê¿¡ Àü´Þ ÇÏÀ§ :: È£ÃâÀÚ QW (¼­ºê 1 ¼­ºê 2); ## ´ÙÀ½°ú °°Àº ÇÏÀ§ - ¶Ç´Â - SUB :: CALLER »ç¿ë; ÇÏÀ§ Å×½ºÆ® {} ÇÏÀ§ :: È£ÃâÀÚ :: addCaller ( 'test'); addCaller ()¸¦ ¼º°øÀûÀ¸·Î È£ÃâÇϱâ Àü¿¡ ÇÏÀ§ ·çƾÀ»·ÎµåÇؾßÇÕ´Ï´Ù. µ¿ÀÏÇÑ ÇÏÀ§ ·çƾ (µé)¿¡¼­ ¿©·¯ ¹ø addCaller ()¸¦ È£ÃâÇϸé ù ¹ø° È£ÃâÀº ÀÚµ¿À¸·Î ¹«½ÃµË´Ï´Ù. acaller Á¤º¸´Â ´ÙÀ½ÀÇ Çü½ÄÀ» ÃëÇÕ´Ï´Ù. {package => 'main', function => 'test', file => 'test.pl', line => 7,}ÀÌ Çؽà ÂüÁ¶°¡ @_ÀÇ ³¡¿¡ Ãß°¡µË´Ï´Ù. ¿¹Á¦ #! / usr / bin / perl # test.pl »ç¿ë µ¥ÀÌÅÍ :: Dumper; SUB :: CALLER ( 'TEST'); Á¾ÇÇ'); ÇÏÀ§ Å×½ºÆ® {## @ _ _ @ @ _À» º¸À¯ÇÏ°í ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ (@_ SUB :: CALER :: ISCALLER ($ _ )) {Àμ⠴ýÆÛ (@_); } __end__ dumper°¡ ÀμâµË´Ï´Ù : $ var1 = ; ¿ä±¸ »çÇ× : ¡¤ Perl.


SUB :: CALLER. °ü·Ã ¼ÒÇÁÆ®¿þ¾î