hahah, sure, why dont we do this then:
my $coolstring;
my @foo = split '', $str;
for (0..4095) { $coolstring .= $foo[$_] }
or how about this one:
my $foo = reverse $str;
while (length $foo > 4096) { $foo =~ s/.(.+)/$1/seg; }
$str = reverse $foo;
and no, i wont be held accountable for any loss of performance in your
script =)
TMTOWTDI ;-)
Jos
> @str = $str =~ /(.)/;
> $#str = 4095;
> $str = join '', @str;
>
> Hey, TMTOWTDI, though you shouldn't overDO it.... =o)
>
- Re: Limiting String Length Jeff 'japhy' Pinyan
- Re: Limiting String Length Chas Owens
- Re: Limiting String Length Chas Owens
- Re: Limiting String Length Paul
- Re: Limiting String Length Jeff 'japhy' Pinyan
- Re: Limiting String Length Jos I. Boumans
- Re: Limiting String Length Michael Fowler
- Re: Limiting String Length M. Buchanan
