[Cascavel-pm] Res: Descartar Linha arquivo

Patty Silva ptfzs em yahoo.com.br
Quarta Abril 28 09:07:19 PDT 2010


Obrigada pessoal!! :)




________________________________
De: Fernando Oliveira <fernandocorrea em gmail.com>
Para: Cascavel Perl Mongers <cascavel-pm em pm.org>
Enviadas: Quarta-feira, 28 de Abril de 2010 14:07:47
Assunto: Re: [Cascavel-pm] Descartar Linha arquivo


   open my $fh, '<', "$ar" or die "Can't read file\n";
   while ( <$fh> ) {
       next if $. <= 4;
       ...
   }
   close $fh;
Just another Perl Hacker,
Fernando (SmokeMachine)
http://perl-e.org



Em 28 de abril de 2010 10:59, Nelson Ferraz <nferraz em gmail.com> escreveu:

>
>   open my $fh, '<', "$ar" or die "Can't read file\n";
>>    while ( <$fh> ) {
>>        # ...
>>    }
>>    close $fh;



      
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/cascavel-pm/attachments/20100428/aa8d6dd3/attachment.html>


Mais detalhes sobre a lista de discussão Cascavel-pm