Skip to content

Instantly share code, notes, and snippets.

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