[Cascavel-pm] Ler Arquivo

Nelson Ferraz nferraz em gmail.com
Quinta Maio 25 07:00:11 PDT 2006


Patty Silva wrote:
> Ola Nelson!1
> 
> Tentei usar o delimitador so que nao funcionou:
> olha o codigo
> 
> while (<FILE>)
> {
>     local $/ = '\s - TE\n';
>      print $_;
>     
> }

Este é um típico caso de RTFM:

"Remember: the value of $/  is a string, not a regex. awk has to be 
better for something. :-)"

http://perldoc.perl.org/perlvar.html

[]s

Nelson


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