Perl

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Change 28156: Adding a mention of STDIN processing by qx// as requested by

    0 answers - 1014 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Change 28156 by stevep@stevep-kirk on 2006/05/11 00:09:53
    Adding a mention of STDIN processing by qx// as requested by
    RT #34288: perlop: qx/STRING/: mention STDIN
    Affected files
    //depot/perl/pod/perlop.pod#144 edit
    Differences
    //depot/perl/pod/perlop.pod#144 (text)
    Index: perl/pod/perlop.pod
    perl/pod/perlop.pod#143~28133~2006-05-09 00:27:37.000000000 -0700
    perl/pod/perlop.pod2006-05-10 17:09:53.000000000 -0700
    @@ -1340,6 +1340,15 @@
    system("program args 1>program.stdout 2>program.stderr");
    +The STDIN filehandle used by the command is inherited from Perl's STDIN.
    +For example:
    +
    + open BLAM, "blam" || die "Can't open: $!";
    + open STDIN, "<&BLAM";
    + print `sort`;
    +
    +will print the sorted contents of the file "blam".
    +
    Using single-quote as a delimiter protects the command from Perl's
    double-quote interpolation, passing it on to the shell instead:
    End of Patch.

Re: Change 28156: Adding a mention of STDIN processing by qx// as requested by


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Perl"

EMSDN.COM