Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to Print Every Other Line

by melora (Scribe)
on Jun 30, 2004 at 20:33 UTC ( [id://370895]=note: print w/replies, xml ) Need Help??


in reply to Re: How to Print Every Other Line
in thread How to Print Every Other Line

"The "remainder" is the modulus of X / 2. And the modulus function is named %. So $x % 2 will be zero for even numbers, and some value for odd numbers."

Some value should be one, right? (well, anyway, non-zero is true, so I'm nitpicking.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://370895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-19 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found