Skip to content

Instantly share code, notes, and snippets.

@tryperl
Created March 2, 2013 15:43
Show Gist options
  • Save tryperl/5071597 to your computer and use it in GitHub Desktop.
Save tryperl/5071597 to your computer and use it in GitHub Desktop.
Created by www.tryperl.com.
#Created by tryperl.com
use strict;
use warnings;
# you know, you could just use IPC::Open2 instead.
package Hide::System::Call;
use Filter::Util::Call;
sub import {
filter_add(bless []);
}
sub filter {
my ($self) = @_;
my $status;
if (($status = filter_read) > 0) {
s/giraffe/system/g;
}
return $status;
}
package main;
use Hide::System::Call;
giraffe('/bin/ls /tmp');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment