Io :: pijp :: producent

IO :: Pijp :: Producer is een PERL-module die twee modules GetUbroutineProducer en GetSystemProducer biedt.
Download nu

Io :: pijp :: producent Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Prijs:
  • FREE
  • Naam uitgever:
  • Robert W. Leach
  • Uitgever website:
  • http://search.cpan.org/~robleach/IO-Pipe-Producer-1.5/lib/IO/Pipe/Producer.pm

Io :: pijp :: producent Tags


Io :: pijp :: producent Beschrijving

IO :: Pijp :: Producer is een PERL-module die twee modules GetUbroutineproducer en GetSystemProducer biedt. IO :: Pijp :: Producer is een PERL-module die twee modules getsubroutineproducer en GETSYSTEMPRODUCER.SYNOPSIS #-module biedt, die 2 methoden levert: getsubroutineproducer # en GetSystemProducer. Ze nemen een subroutine-referentie # (met bijbehorende argumenten) en respectievelijk een systeemoproep en retourneren (gezegend) handvatten op hun # streaming standaarduitgang en standaardfoutoutput. # Voorbeelden van gebruik Gebruik IO :: Pijp :: producent; $ obj = NIEUWE io :: Pijp :: producent (); $ STDOUT_FH = $ OBJ-> GETUBROUTINEPRODUMER ($ SUBROUTINE_REFERENCE, @SUBROUTINE_PARAMETERS); # Of gebruik io :: pijp :: producent; $ obj = NIEUWE io :: Pijp :: producent (); ($ STDOUT_FH, $ STDERR_FH) = $ OBJ-> GETUBROUTINEPRODUMER ($ SUBROUTINE_REFERENCE, @SUBROUTINE_PARAMETERS); # Of gebruik io :: pijp :: producent; $ stdout_fh = NIEUWE IO :: PIRE :: producent ($ subroutine_referentie, @subroutine_parameters); # Of gebruik io :: pijp :: producent; ($ STDOUT_FH, $ STDERR_FH) = NIEUWE IO :: PIRE :: producent ($ subroutine_referentie, @subroutine_parameters); # Dan kunt u de geretourneerde handgrepen lezen zoals elke andere # -bestandhandvat ... terwijl () {print "stdout van producent: $ _"} terwijl () {print "Stderr van producent: $ _"} # U kunt ook doen Hetzelfde met systeemgesprekken met # de Subroutine van GetSystemProducter. Deze functie # is echter niet toegankelijk via het nieuwe Constructor-gebruik io :: Pijp :: producent; $ obj = NIEUWE io :: Pijp :: producent (); $ stdout_fh = $ OBJ-> GETSYSTEMPRODUCER ("ECHO" Hallo World! "); Gebruik io :: pijp :: producent; $ obj = NIEUWE io :: Pijp :: producent (); ($ STDOUT_FH, $ STDERR_FH) = $ OBJ-> GETSYSTEMPRODUCER ("ECHO" Hallo World! ""); # Dit is echter precies hetzelfde als: gebruik io :: pijp :: producent; $ stdout_fh = nieuwe producent (sub {systeem (@_)}, "echo" Hallo World! ""); # Of gebruik io :: pijp :: producent; ($ STDOUT_FH, $ STDERR_FH) = NIEUWE IO :: Pijp :: producent (sub {systeem (@_)}, "Echo" Hallo World! ""); Vereisten: · Perl


Io :: pijp :: producent Gerelateerde software