Re: __DATA__ Token Problem

2004-07-06 Thread John W . Krahn
On Tuesday 06 July 2004 03:47, Bastian Angerstein wrote: > > my $data = tell DATA; > print "$data\n"; > truncate $0, $data; > > This looks very promising to me. > Therefor that the host is a Unixsystem, I might be able to solve my > problem. > > I don´t really understand $0 at the moment. > I thoug

RE: __DATA__ Token Problem

2004-07-06 Thread Bastian Angerstein
arted with. Bastian -Ursprüngliche Nachricht- Von: John W. Krahn [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Juli 2004 06:37 An: Perl Beginners Betreff: Re: __DATA__ Token Problem On Monday 05 July 2004 05:07, Bastian Angerstein wrote: > > Hello, Hello, > I have a few questio

Re: __DATA__ Token Problem

2004-07-05 Thread John W . Krahn
On Monday 05 July 2004 05:07, Bastian Angerstein wrote: > > Hello, Hello, > I have a few questions regarding to the DATA Filehandle: > > 1. > This handle ist opend by default or do I have to open it by myself? It is opened by default. > 2. > Is it possible to change to content of what the hand

Re: __DATA__ Token Problem

2004-07-05 Thread Matija Papec
Bastian Angerstein wrote: I have a few questions regarding to the DATA Filehandle: 1. This handle ist opend by default or do I have to open it by myself? 2. Is it possible to change to content of what the handle so that the __DATA__ Sektion of my skript changes? 3. Can I delete anything data from D

Re: __DATA__ Token Problem

2004-07-05 Thread James Edward Gray II
On Jul 5, 2004, at 2:57 PM, Jan Eden wrote: 2. Is it possible to change to content of what the handle so that the __DATA__ Sektion of my skript changes? I don't think it's a good idea to have a script write to itself. The DATA section is meant to keep static input out of the way of your processing

Re: __DATA__ Token Problem

2004-07-05 Thread Jan Eden
Hi Bastian, Bastian Angerstein wrote on 05.07.2004: >Hello, > >I have a few questions regarding to the DATA Filehandle: > >1. This handle ist opend by default or do I have to open it by >myself? > According to the docs, it should be opened by the __DATA__ token: >The __DATA__ token opens the DA

__DATA__ Token Problem

2004-07-05 Thread Bastian Angerstein
Hello, I have a few questions regarding to the DATA Filehandle: 1. This handle ist opend by default or do I have to open it by myself? 2. Is it possible to change to content of what the handle so that the __DATA__ Sektion of my skript changes? 3. Can I delete anything data from DATA so that th