Skip to content

Instantly share code, notes, and snippets.

View frioux's full-sized avatar
⚔️

fREW Schmidt frioux

⚔️
View GitHub Profile
module Ghetto;
sub run($cmd) {
# create a random filename to store output in
my $tmp = ".tmp-{(1..100).pick}-ghetto";
# use the real run command, :: means root namespace
::run("$cmd > '$tmp'");
# open the file