apl logo

A.P. Lawrence

Information and Resources for Unix and Linux Systems
Bloggers and the self-employed
RSS FeedsGet APLawrence.com by RSS




Perl Skills Test

© 2005 A.P. Lawrence

Answer


4 1 -4

While it can speed up calculations that don't need to be floating point, the "use integer" pragma also affects the result of modulo on negative numbers. With "use integer", the "%" works like it does with positive numbers. The pragma also affects bitwise operations, so you may need to be aware of these side effects if you invoke it.

Comments /Tests/Perl/e0024.html


Add your comments


Next question
Return to Question q0024

Related Articles

Have you tried Searching this site?

Please read this disclaimer

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

/Tests/Perl/e0024.html copyright Tony Lawrence All Rights Reserved

Views for this page
Today  This Week  This Month  This Year   Overall
12588338
Paid Advertisers

Cingular cell phones  -  Advanced Cisco Networking and Security by Vinci Consulting  
Data Recovery Software  -  Internet Advertising  -