reening that you intended
dig?
> -Original Message-
> From: Andrea Holstein [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 10, 2001 13:53
> To: [EMAIL PROTECTED]
> Subject: Re: don't begin
>
>
>
> Jeremy Vinding wrote:
> >
> &
Jeremy Vinding wrote:
>
> }
> >
> > or if you want to be the quickest in the world, try:
> >
> > unless ($line =~ /^ (?! [Ldf] )
> > (?! LOG_INFO | dhcp | ftpd )
> > /x) {
> >
> ># line doesn't start with them
> > }
>
> I believe that would also catch lin
}
>
> or if you want to be the quickest in the world, try:
>
> unless ($line =~ /^ (?! [Ldf] )
> (?! LOG_INFO | dhcp | ftpd )
> /x) {
>
># line doesn't start with them
> }
I believe that would also catch lines such as:
don't print this line, it does
Jorge Goncalvez wrote:
>
> How in Perl you specify a line in a file that don't begin with something for
> exemple I wanted to specify the last line of my file don't begin with
> LOG_INFO,dhcpd or ftpd ?
Use regular expressions with negative lookahead.
E.g, to check a line doesn't start with LOG_