Thank you very much for your help.
I know these codes are not pratical use. I just try to do some small perl code first
User Profile
Collapse
-
It belongs to the program of another course. I have just finish bash and wanted to learn some perl myself. However, looking for a simple solution through the webs is so difficult, since most of them only have difficult problems and tutorial texts, which couldn`t help me.
Can you help me out, pls?Leave a comment:
-
Help pls
I am a complete newbie at Perl. I have just started getting from bash to Perl language. I am trying to do a simple perl scripting that takes three arguments: two integers and an operation (+, -, * or /) and outputs the computed value.
Example:
$ ./perl_calc.pl 12 -13 *
-156
$
However, I don`t know how to turn that operation variable (+, -, * or /) back to an operation only, since when I put in $ARGV[0] $ARGV[1]...
No activity results to display
Show More
Leave a comment: