Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by pKai (Priest)
on Jan 31, 2008 at 21:50 UTC ( #665455=note: print w/ replies, xml ) Need Help??


in reply to Golf/Perlish solution to this problem?

When I read the OP, I immediately remembered back some 20 years ago, when I had to solve the same problem at $work.

As it hasn't been mentioned so far, and in case the random monk is wondering what the whole procedure is good for:

That reordering of 1..n; !(n%4) is needed, when you want to print a booklet from n pages, 2 pages on one, duplex.

By searching for "booklet page reorder" (or similar) with your www search engine of choice, you'll be able to find some descriptions and even illustrations on the topic.


Comment on Re: Golf/Perlish solution to this problem?
Download Code
Re^2: Golf/Perlish solution to this problem?
by Cody Pendant (Prior) on Feb 05, 2008 at 04:54 UTC
    You are 100% correct, pKai, good for you, that's exactly what I needed it for.

    And thanks to everyone else for their contributions.



    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-07-14 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls