Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Convert to Single line

by zek152 (Pilgrim)
on Jul 07, 2011 at 13:35 UTC ( [id://913185]=note: print w/replies, xml ) Need Help??


in reply to Convert to Single line

Here is a poorly written one liner...

$ perl -e "for (2 .. $ARGV[0]-1) {$ARGV[0]*=$_;} print $ARGV[0];" 7 $ 5040 $

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found