root/misc/gcalc.pl

Revision 2128 (checked in by miyagawa, 13 years ago)

add Google calculator FE

  • Property svn:executable set to *
Line 
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4 use WWW::Google::Calculator;
5
6 my $expression = join ' ', @ARGV
7     or die "Usage: gcal.pl expression\n";
8
9 print WWW::Google::Calculator->new->calc($expression), "\n";
10
11
Note: See TracBrowser for help on using the browser.