On Sunday 25 Oct 2009 14:39:32 Shawn H Corey wrote: > Michael Alipio wrote: > > Any idea how to do this? I'm thinking maybe I can just > > split the whole string and push each character into array, > > then loop through the array, getting 3 elements set in the > > proces.. > > Split the string into an array, loop through it and use a slice to join > the elements. >
Why not use perldoc -f substr ( http://perldoc.perl.org/functions/substr.html ) in a loop? Alternatively one can use unpack but I'm not sure how well it would handle Unicode characters. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ Chuck Norris read the entire English Wikipedia in 24 hours. Twice. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/