Here is the file content of 123.txt:
--------------------------------------
123][456][987][
--------------------------------------
And this is the perl file:
--------------------------------------
#!/usr/local/bin/perl
open(MARK, "123.txt");
$MARK = <MARK>;
close(MARK);
($a, $b, $c) = split(/][/, $MARK);
$ABC = $b + $c / $a
--------------------------------------
Then... $ABC should be 12.0975XXXXX
Now I dont want .0975XXXXX, I only want an integer - 12 for $ABC. What will the perl code be???
(I have learn perl language for only 6 days, so if there is any other problem can you tell me???)
Thanks a lot!!!
--------------------------------------
123][456][987][
--------------------------------------
And this is the perl file:
--------------------------------------
#!/usr/local/bin/perl
open(MARK, "123.txt");
$MARK = <MARK>;
close(MARK);
($a, $b, $c) = split(/][/, $MARK);
$ABC = $b + $c / $a
--------------------------------------
Then... $ABC should be 12.0975XXXXX
Now I dont want .0975XXXXX, I only want an integer - 12 for $ABC. What will the perl code be???
(I have learn perl language for only 6 days, so if there is any other problem can you tell me???)
Thanks a lot!!!