Skip to content

Instantly share code, notes, and snippets.

@jnbek
Created December 20, 2010 02:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnbek/747935 to your computer and use it in GitHub Desktop.
Save jnbek/747935 to your computer and use it in GitHub Desktop.
Working example with using open and pipes for external program execution.
perl -e'open my $PROG, "-|", "ls -hal"; while (<$PROG>) { print $_; } close $PROG;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment