$i = system(bc 110^151%14351);
print($i);
Hey everyone, I am attempting to use a system call to use a calculator installed on my linux machine. The calculators name is GNU bc, for the basic calculator. Basically it is an easy way to calculate equations. I can easily run it from the terminal by just typing bc and then the function I want to equate, in this case 110 raised to 151 modded by 14351. The problem is, I don't know too much about perl and I keep getting this error Can't call method "bc" without a package or object reference when trying to write a perl script to automate it. How do I call a system call in Perl, or am I allowed to do it? Thanks