in reply to Rotating a string
sub rot { my ($str, $rot) = @_; substr($str,$rot).substr($str, 0, $rot); }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Rotating a string
by ariels (Curate) on Dec 04, 2000 at 11:14 UTC |