Anidil Rajendran wrote:
>
> Hi
> He only cares lines 100 onwards
> regards
oh. i need more coffee and need to pay more attention to the OP. thanks for
pointing this out. my bad.
david
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Original Message -
> Nkuipers wrote:
>
> >>e.g. I have a file with a header - and I only need the data from line
> >>100 and forward where the single lines are put in to a array for further
> >>"treatment".
> >
>
> should probably be "$. == 100" but this is a bit better:
>
> last if($.
Nkuipers wrote at Wed, 18 Sep 2002 18:53:44 +0200:
>>e.g. I have a file with a header - and I only need the data from line
>>100 and forward where the single lines are put in to a array for further
>>"treatment".
>
> If you are SURE of consistent formedness in your input file (data will always
Nkuipers wrote:
>>e.g. I have a file with a header - and I only need the data from line
>>100 and forward where the single lines are put in to a array for further
>>"treatment".
>
> If you are SURE of consistent formedness in your input file (data will
> always be at lines 100+) you could use th
>e.g. I have a file with a header - and I only need the data from line
>100 and forward where the single lines are put in to a array for further
>"treatment".
If you are SURE of consistent formedness in your input file (data will always
be at lines 100+) you could use the $. var, which holds the
You could write your own function that is a for loop that counts until
100, putting each line into the array and quits would work.
There may be a more elegant way, though...
Matt
On Wed, 2002-09-18 at 09:31, Jakob Kofoed wrote:
>
> Hi there,
>
> Does Perl have a function like the UNIX head.