Skip to content

Instantly share code, notes, and snippets.

@sh1mmer
Created May 13, 2009 16:42
Show Gist options
  • Save sh1mmer/111117 to your computer and use it in GitHub Desktop.
Save sh1mmer/111117 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
$foo = "alert ('foo');";
open(FH, "| java -jar yuicompressor-2.4.2.jar --type js");
print FH $foo;
while(<FH>){
print $_;
}
print "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment