Peter Scott wrote:
> Anyway, here's a way that doesn't require keeping more than 12 lines
> in memory and doesn't require reading twice:
>
> $^I = ".bak";
> my @queue;
> while (<>) {
> push @queue, $_;
> print shift @queue if @queue > 12;
> }Neat. I like that :) What's the $^I variable? Is it a 5.8 addition? /R -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
