Skip to content

Instantly share code, notes, and snippets.

@sergot
Created February 24, 2012 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergot/1900171 to your computer and use it in GitHub Desktop.
Save sergot/1900171 to your computer and use it in GitHub Desktop.
New &unlink
sub unlink($path) {
die "$path is not a file." if $path.IO.d;
try {
pir::new__PS('OS').rm($path);
}
$! ?? fail($!) !! Bool::True
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment