Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Divisors of a number

by Athanasius (Archbishop)
on Mar 03, 2015 at 15:52 UTC ( [id://1118621]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Divisors for a number
in thread Divisors for a number

Nice! I particularly like the $%%$_ construct. But why so verbose?

1:49 >perl -wE"$%%$_||say for 1..($%=pop)" 36 1 2 3 4 6 9 12 18 36 1:49 >

Ten characters strokes saved. :-)

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found