Skip to content

Instantly share code, notes, and snippets.

@romuald
Last active December 12, 2015 02:58
Show Gist options
  • Save romuald/4702494 to your computer and use it in GitHub Desktop.
Save romuald/4702494 to your computer and use it in GitHub Desktop.
older perl bug with sub + open pipe ?
#!/usr/bin/env perl
use strict; use warnings;
use Data::Dumper;
my $less ;
my $pid;
my $abc = sub {
$pid = open($less, "| less");
select $less;
};
&$abc();
print $less "MER IL ET FOU\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment