Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: PUZZLED

by redcloud (Parson)
on Aug 24, 2000 at 22:06 UTC ( #29474=note: print w/replies, xml ) Need Help??


in reply to PUZZLED

use strict; my $string = shift @ARGV || 'space'; my $length = length $string; $string .= $string; for my $start (0 .. $length-1) { print substr($string, $start, $length), "\n"; }
Uses twice as much space, but could save time if moving characters around is expensive.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://29474]
help
Chatterbox?
shmem puts a big cauldron of "silly con charme" on the table in the refectorium
[shmem]: mahlzeitTM

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-04-27 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.