perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Fernando <l...@engenhosolucoes.com.br>
Subject Re: Read file problem
Date Wed, 30 Jul 2003 12:41:59 GMT
Hi,

You have to escape the <F> or Embperl will think it is a html tag and
remove it from your source unless you have set that option to not clean
your code from html (don't remember exact one now, see man page).

Escape this way:
@lines = \<F>;

And, as Angus pointed, use semi-colons...

-- 
Luiz Fernando Ribeiro
Engenho Soluções S/C Ltda

On Wed, 2003-07-30 at 05:53, Radovan Petrík wrote:
> Hi, 
> 
> sorry for my begginer question , i have this code 
> 
> 1 open (F , 'my_file') or die 
> 2 @lines = <F>
> 
> On line 2 embperl return error "syntax error" . Why ? 
> 
> And when I need open new file " open (F , '> my_file') or die "  then 
> embperl dont open new file.
> 
> Thanks 
> 
> Rado.
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message