develooper Front page | perl.perl6.users | Postings from March 2021

'CALL-ME' Math problem?

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
March 2, 2021 08:13
Subject:
'CALL-ME' Math problem?
Message ID:
24673376-707e-d0e5-f41a-57e20078b315@zoho.com

Hi All,

Math problem:
     x = 60÷5(7−5)

raku -e 'say 60÷5(7−5)'
No such method 'CALL-ME' for invocant of type 'Int'
   in block <unit> at -e line 1

Seems raku does not like the ().  How do I fix this
and maintain the flow and look of the equation?

-T

The correct answer is 24



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About