Jenda Krynicky wrote:
> 
> while ($long_string ne '') {
>         my $chunk = substr( $long_string, 0, 26);
>         substr( $long_string, 0, 26) = '';

Or just:

         my $chunk = substr( $long_string, 0, 26, '' );

But that is inefficient because you modify the beginning of the string
on each iteration.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to