DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Pc - Perl Calculator...

02.25.2009
| 2490 views |
  • submit to reddit
        
#!/usr/bin/perl
die "Usage: $0 MATHS\n" unless(@ARGV);for(@ARGV){s/x/*/g};
print eval(join('',@ARGV)),$/;
    

Comments

Snippets Manager replied on Thu, 2011/06/02 - 9:31am

thanks,it's work